/**
* Course.java
*/
import java.io.*;
public class Course {
public static void main(String[] args) throws
IOException
{
Student[] classList = new
Student[5];
BufferedReader stdin = new
BufferedReader(new
InputStreamReader(System.in));
for (int count=0;
count<classList.length; count++)
{
System.out.print("Enter the name: ");
String name =
stdin.readLine();
System.out.print("Enter the age: ");
int age =
Integer.parseInt(stdin.readLine());
System.out.print("Enter the gpa: ");
double gpa =
Double.parseDouble(stdin.readLine());
classList[count] = new Student(name,age,gpa);
}
for (int count=0;
count<classList.length; count++)
System.out.println(classList[count]);
}
}