public class Main {
public static void main(String Argv[] ){
Student students[] = {
new Student(2,"Lee"),
new Student(5,"Kim"),
new Student(3,"Park"),
new Student(7,"Choi"),
new Student(6,"Jin"),
new Student(10,"Money"),
};
for(int i = 0; i < students.length;i++)
System.out.println( students[i].id + students[i].name +"\t");
System.out.println("\n");
Sort.InsertionSort( students );
-
for(int i = 0; i < students.length;i++)
System.out.println( students[i].id + students[i].name +"\t");
}
}
class Life extends Object implements Dynamic {
Life(Life father, Life mother){}
responseToThis(Life this){}
responseToOthers(Life others){} }