import java.io.*; public class LinkedListTester { public static void main (String[] args) throws IOException { LinkedList list = new LinkedList(); for (int i = 0; i < 10; i ++) { list.insert((int) (51*Math.random())); } list.print(); list.selectionSort(); list.print(); list.clear(); for (int i = 0; i < 10; i ++) { list.insert((int) (51*Math.random())); } list.print(); list.insertionSort(); list.print(); list.clear(); for (int i = 0; i < 10; i ++) { list.insert((int) (51*Math.random())); } list.print(); //list.bubbleSort(); //list.print(); //list.clear(); /* Node n = new Node(101); list.insert(n,0); list.print(); */ //list.insertionSort(); //list.bubbleSort(); } }