output this in the console:
n=no. of items to sort
Sorting Algorithm | 1000 | 3000 | 5000 | 7000 | 9000 | 11000 |
BubbleSort |
SelectionSort | sorting time in
InsertionSort | millisecond
NOTE: do not display sorted items.
public class Main
{
public static void main(String[] args) {
System.out.println("n=no. of items to sort");
System.out.println("Sorting Algorithm ");
System.out.println("BubbleSort |");
System.out.println("SelectionSort | sorting time in");
System.out.println("InsertionSort | millisecond");
}
}
Comments
Leave a comment