Add SortServer
test
This commit is contained in:
parent
6759e4e9eb
commit
27d815812e
|
@ -195,4 +195,20 @@ public class SortServer implements CommandExecutor {
|
|||
return arg + " " + ex.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SortServer sorter = new SortServer();
|
||||
String sort;
|
||||
sort = "BUBBLE RANDOM 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "SELECTION RANDOM 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "INSERTION RANDOM 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "QUICKERSORT RANDOM 10000 100"; System.out.println(sorter.execute(sort));
|
||||
sort = "STREAM RANDOM 10000"; System.out.println(sorter.execute(sort));
|
||||
|
||||
sort = "BUBBLE ASC 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "SELECTION ASC 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "INSERTION ASC 10000"; System.out.println(sorter.execute(sort));
|
||||
sort = "QUICKERSORT ASC 10000 100"; System.out.println(sorter.execute(sort));
|
||||
sort = "STREAM ASC 10000"; System.out.println(sorter.execute(sort));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue