插入排序法: 插入排序法(Insertion Sorting)的基本思想是:把n個待排序的元素看成一個有序表和一個無序表,開始時有序表中只包含一個元素,無序表中包含有n-1個元素,排序過程中每次從無序表中取出第一個元素,把它的排序碼依次與
import java.util.Scanner; class Person{ int no; Person nextPerson = null; public Person(int no){ this.no = no; }