Question: 6. A toString() method. Output example: a. Bill Clyde 0000007 - 4937 Queens St. Vancouver, BC, X8X 26Y A driver class (StudentTest.java) is provided to

6. A toString() method. Output example:
a. Bill Clyde 0000007 - 4937 Queens St. Vancouver, BC, X8X 26Y
A driver class (StudentTest.java) is provided to you. Make sure your Student class can run with the driver program and produce the following output: TestFirstName TestLastName - 0000001 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000002 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000003 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000004 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000005 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000006 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000007 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000008 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000009 - 0000 Test St., Test City, TP, Z0Z 0Z0 TestFirstName TestLastName - 0000010 - 0000 Test St., Test City, TP, Z0Z 0Z0 Bill Clyde 0000007 - 4937 Queens St. Vancouver, BC, X8X 26Y Bill Clyde 0000007 - 4937 Queens St. Vancouver, BC, X8X 26Y
public class StudentTest { public static void main(String[] args) { Student[] testStudentList = new Student[10]; for (int i = 0; i Implement a student class (Student.java) which include the following: 1. Students information: a. First name b. Last name c. Student number that corresponding to the current number of students i. First student 0000001, second student 0000002, etc. d. Mailing address i. Include address, city, province, and post code, separate by comma. 2. Keep a count of the total number of student instances that are created. 3. Getters and setters for all instance member (except setter for student number). 4. Regular constructor that allows instance to be created with values for all instance members expect student number. a. Student number should be generated automatically by the current number of students. 5. Non-argument constructor that creates dummy data with a. First name: TestFristName b. Last name: TestLastName c. Student number: follow the same mechanism of regular constructor d. Mailing address: 0000 Test St., Test City, TP, ZOZ OZO Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
