Question: Program Write a class called Student with 4 private instance variables first name, last name, age and gpa. Write 2 constructors, 4 get methods, 4

 Program Write a class called Student with 4 private instance variables

Program Write a class called Student with 4 private instance variables first name, last name, age and gpa. Write 2 constructors, 4 get methods, 4 set methods and a toString method. Write a class, StudentListDriver with a main to do the following: read all the data from the Studentlist.txt text file and put it into an ArrayList structure which must be a static class member. Use a Scanner to read from the file using methods like next(), nextInt(), nextDouble() Print the number of students in the ArrayList Print the student at index 100 in the ArrayList. Print and remove the student at index 57 in the ArrayList. Print how many students have a GPA between 3 and 4 inclusive. Print the student names only of those students whose GPA is between 2.5 and 3 inclusive. Delete the first student record with the name "Todd Novak" Print the student data from index 100 to the end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!