import java.util.ArrayList;
import java.util.List;


public class Program {
	
	public static void main (String[] args) {
		System.out.println ("Hello World!");
		
		System.out.println("===============Value Object====================\n");
        Student p1 = new Student("Ronaldo", "Striker", 7);
        Student p2 = new Student("Zidane", "Mid-fielder", 10);
        Student p3 = new Student("David Beckham", "Attacking Mid-fielder", 23);

        
        
        List<Student> StudentListCompEngg= new ArrayList<Student>();
        StudentListCompEngg.add(p1);
        StudentListCompEngg.add(p2);
        StudentListCompEngg.add(p3);
        
        School ComputerEngg = new School(StudentListCompEngg);
        
        
        
        Student p4 = new Student("Ramos", "Defender", 4);
        Student p5 = new Student("Carlos", "Defender", 6);
        System.out.println("Computer Engineering  players \n");
        System.out.println("===============\n");
        
        for (int i = 0; i < ComputerEngg.StudentList.size() ; i++)
        	System.out.println(ComputerEngg.StudentList.get(i).Name + "\t" + ComputerEngg.StudentList.get(i).Department + "\t" + ComputerEngg.StudentList.get(i).StudentId + "\n");


        ComputerEngg=ComputerEngg.add(p4);
        
        System.out.println("Adding PLayers Ramos to Real Madrid \n");
        System.out.println("===============\n");
        System.out.println("Real Madrid FC \n");
        System.out.println("===============\n");
        
        for (int i = 0; i < ComputerEngg.StudentList.size() ; i++)
        	System.out.println(ComputerEngg.StudentList.get(i).Name + "\t" + ComputerEngg.StudentList.get(i).Department + "\t" + ComputerEngg.StudentList.get(i).StudentId + "\n");

        
        ComputerEngg = ComputerEngg.remove(p1);
        
        System.out.println("Removing PLayers Ronaldo from Real Madrid \n");
        System.out.println("===============\n");
        System.out.println("Real Madrid \n");
        System.out.println("===============\n");
        
        for (int i = 0; i < ComputerEngg.StudentList.size() ; i++)
        	System.out.println(ComputerEngg.StudentList.get(i).Name + "\t" + ComputerEngg.StudentList.get(i).Department + "\t" + ComputerEngg.StudentList.get(i).StudentId + "\n");
        
        
        Student p6 = new Student("Messi", "Striker", 10);
        Student p7 = new Student("Xavi", "Mid-fielder", 6);
        Student p8 = new Student("Puyol", "Attacking Mid-fielder", 5);

        List<Student> StudentListCompSci= new ArrayList<Student>();
        StudentListCompSci.add(p6);
        StudentListCompSci.add(p7);
        StudentListCompSci.add(p8);

        
        School CompScience = new School(StudentListCompSci);
        System.out.println("Barca \n");
        System.out.println("===============\n");
        
        for (int i = 0; i < CompScience.StudentList.size() ; i++)
        	System.out.println(CompScience.StudentList.get(i).Name + "\t" + CompScience.StudentList.get(i).Department + "\t" + CompScience.StudentList.get(i).StudentId + "\n");
        
        
        TransferStudent SPL = new TransferStudent(ComputerEngg, CompScience);
        SPL.transfer(ComputerEngg, CompScience, p3);
        ComputerEngg = SPL.From;
        CompScience = SPL.To;
        
	    }

	
}
