Untitled
unknown
plain_text
a year ago
394 B
7
Indexable
Never
public static void main(String args[]) { StudentData s[] = new StudentData[3]; for(int i=0; i<3; i++) { System.out.println("*****Enter " + (i+1) + "Student details"); s[i] = new StudentData(); s[i].calculate(); } System.out.println("Student details"); for(int i=0; i<3; i++) { System.out.println("\n*****" + (i+1) + "Student details"); s[i].display(); } } }