Question: Java help, please!!! Create a new package named program3 in Eclipse, and put all the classes in this package (right-click on a project New Package,

Java help, please!!!

Create a new package named program3 in Eclipse, and put all the classes in this package (right-click on a project New Package, type program3 as the package name). Now, add a class to the package (right-click on the package New Class, type StudentEntry as the class name). Write a class named StudentEntry that has instance fields for a persons name, phone number, and email (all are Strings). The class should have a constructor that takes three parameters (the students name, phone number, and email) and appropriate accessor methods (getters) and mutator methods (setters). Then write a class StudentEntryDemo (this is the driver program used to test the other class), in the main method, create three StudentEntry objects with the names, phone numbers, and emails shown as below:

Java help, please!!! Create a new package named program3 in Eclipse, and

Now create an ArrayList of StudentEntry objects, add the objects to the ArrayList one by one. Use a for loop to display the info for each student in the ArrayList (remember the example we did in class for the BankAccount objects, you need to use the get method of the ArrayList to get each individual object, and then use the accessor methods in StudentEntry to get the name, phone number, and email for each student).

entry1 entry2 entry3 name James Smith Catherine Byrd Bill Wang phone 662-915-1234 662-801-1678 901-380-8972 email jsmith@go.olemiss.edu cbyrd@go.olemiss.edu bwang@go.olemiss.edu

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!