formatting output
This commit is contained in:
@@ -92,13 +92,11 @@ public class AlgorithmTester{
|
|||||||
System.out.println("Enter the number again to deselect an algorithm.");
|
System.out.println("Enter the number again to deselect an algorithm.");
|
||||||
for(int i=0;i<sortingAlgoNames.length;i++){
|
for(int i=0;i<sortingAlgoNames.length;i++){
|
||||||
int num=i+1;
|
int num=i+1;
|
||||||
System.out.print(num+") "+sortingAlgoNames[i]);
|
System.out.print(num+") ");
|
||||||
if(sortingAlgoChoices[i]){
|
if(sortingAlgoChoices[i]){
|
||||||
System.out.print(" *\n");
|
System.out.print("> ");
|
||||||
}
|
|
||||||
else{
|
|
||||||
System.out.print("\n");
|
|
||||||
}
|
}
|
||||||
|
System.out.print(sortingAlgoNames[i]+"\n");
|
||||||
}
|
}
|
||||||
System.out.println("Enter 0 to continue when all desired algorithms have been selected.");
|
System.out.println("Enter 0 to continue when all desired algorithms have been selected.");
|
||||||
input = sc.nextInt();
|
input = sc.nextInt();
|
||||||
|
|||||||
Reference in New Issue
Block a user