Fixed a few typos

This commit is contained in:
2020-07-09 02:11:14 -04:00
parent b3ffd2fbf0
commit 814f02e54d

View File

@@ -86,7 +86,7 @@ public class Benchmark{
String timeResults = Stopwatch.getStr(totalTime); String timeResults = Stopwatch.getStr(totalTime);
//Print the results //Print the results
System.out.println("\n" + problem.getResult()); System.out.println("\n" + problem.getResult());
System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + "iterations\n\n"); System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + " iterations\n\n");
} }
private static void runAllShort(){ private static void runAllShort(){
//Ask how many times to run the problem //Ask how many times to run the problem
@@ -116,8 +116,8 @@ public class Benchmark{
totalTime /= timesToRun; totalTime /= timesToRun;
String timeResults = Stopwatch.getStr(totalTime); String timeResults = Stopwatch.getStr(totalTime);
//Print the results //Print the results
System.out.println("\n\n" + problem.getDescription()); System.out.println("\n\n" + problem.getResult());
System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + "iterations\n\n"); System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + " iterations\n\n");
} }
} }
private static void runAll(){ private static void runAll(){
@@ -145,7 +145,7 @@ public class Benchmark{
String timeResults = Stopwatch.getStr(totalTime); String timeResults = Stopwatch.getStr(totalTime);
//Print the results //Print the results
System.out.println("\n\n" + problem.getDescription()); System.out.println("\n\n" + problem.getDescription());
System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + "iterations\n\n"); System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + " iterations\n\n");
} }
} }
private static int getNumberOfTimesToRun(){ private static int getNumberOfTimesToRun(){