mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Fixed a few typos
This commit is contained in:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user