/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	static class Student {
		private final int uwecId;
		private String firstName;
		private String lastName;
		private double GPA;
		
		public Student(int uwecId, String firstName, String lastName, double GPA) {
			this.uwecId = uwecId;
			this.firstName = firstName;
			this.lastName = lastName;
			this.GPA = GPA;
		}
		
		public int getUwecId() {
			return uwecId;
		}
		
		public String getFirstName() {
			return firstName;
		}
		
		public String getLastName() {
			return lastName;
		}
		
		public double getGPA() {
			return GPA;
		}
	}
	
    static class StudentList extends ArrayList<Student>{
        @Override
        public String toString() {
        	String outputString = "";
            for (Student student : this) {
                outputString += String.format("UWECStudent = uwecId: %d, name: %s %s, gpa: %.2f\n",
                    student.getUwecId(), student.getFirstName(), student.getLastName(), student.getGPA());
            }
            return outputString;
        }        
    }
	
	public static void main (String[] args) throws java.lang.Exception {
		
        Student s1 = new Student(123, "John", "Doe", 3.5);
        Student s2 = new Student(456, "Jane", "Doe", 4.0);
        
        StudentList students = new StudentList();
        students.add(s1);
        students.add(s2);
        
        System.out.println(students.toString());
	}
}