You cannot place a number variable into the say() method
You must use the World function : what as a string
NEXT: asking user for input and saying it
You cannot place a number variable into the say() method
You must use the World function : what as a string
NEXT: asking user for input and saying it
Class Roster: This class will implement the functionality of all roster for school. It will , in essence, manage an Array of Student objects. Each roster will store a default of 10 Students
boolean addStudent( Student st ) ;//adds the student to the Roster
public void addStudent(String studentName, int age) ;// adds student name and age to end of roster
. Hint: Make user of the containsStudent() method
public boolean removeStudent(int ssnId ) // removes student from roster based on id. Make sure that you maintain the integrity of the parallel ArrayLists.
public boolean removeStudent(String name) //removes student based on name. Make sure that you maintain the integrity of the parallel ArrayLists.
public boolean removeStudent( Student st) //removes student st. Make sure that you maintain the integrity of the parallel ArrayLists.
public class StudentsRunner2{
public static void main(String[] args){
//insert the line of code needed to create the Student object aStudent;
String teacher;
for (int i =0 ;i < 5; i++)
{
teacher= inputString("Enter a teacher");
aStudent.addTeacher(teacher);
}
}
}
1) Construct the Java statement to create the Student object called aStudent in the
StudentsRunner
2)
Back to the Student Class