From 814f02e54dd27f4c23a1337693392a0c274a53f6 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Thu, 9 Jul 2020 02:11:14 -0400 Subject: [PATCH] Fixed a few typos --- src/main/java/mattrixwv/ProjectEuler/Benchmark.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(){