I'm working on a program that demonstrates polymorphism. It asks the user to create an elementary, high school, or college student. Once a student is created, it is stored in an array list. When prompted, the program is suppose to print out each of the student's information. How do I go about printing this information, and making sure the appropriate printString methods are called? Main Class: import java.util.ArrayList; import java.util.Scanner; // Student Application public class StudentApp { private static ArrayList<Student> students = new ArrayList<Student>(); public static void main(String[] args) { String studName, schoolName, teachName, counselor, major, location; double gpa; int …

Member Avatar
+0 forum 0

The End.