Question: JAVA Write a program that meets the following requirements: Create a class for students. The class must contain each students name, (String), ID (int) and
JAVA
Write a program that meets the following requirements: Create a class for students. The class must contain each students name, (String), ID (int) and status (int.) The status indicates the students class standing: 1 for freshman, 2 for sophomore, 3 for junior and 4 for senior. Create 20 students whose names are Name1, Name2 and so on, to Name20, and whos IDs and status are assigned randomly. Print out the array of student objects. Find all juniors and print their names and IDs. NOTE: Use the Math.random() method to create student ID and status.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
