diff --git a/src/main/java/mattrixwv/ProjectEuler/Benchmark.java b/src/main/java/mattrixwv/ProjectEuler/Benchmark.java index 4f4fed0..7633dd8 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Benchmark.java +++ b/src/main/java/mattrixwv/ProjectEuler/Benchmark.java @@ -86,7 +86,7 @@ public class Benchmark{ String timeResults = Stopwatch.getStr(totalTime); //Print the results 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(){ //Ask how many times to run the problem @@ -116,8 +116,8 @@ public class Benchmark{ totalTime /= timesToRun; String timeResults = Stopwatch.getStr(totalTime); //Print the results - 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("\n\n" + problem.getResult()); + System.out.println("It took an average of " + timeResults + " to run this problem through " + timesToRun + " iterations\n\n"); } } private static void runAll(){ @@ -145,7 +145,7 @@ public class Benchmark{ String timeResults = Stopwatch.getStr(totalTime); //Print the results 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(){