diff --git a/src/main/java/mattrixwv/ProjectEuler/Benchmark.java b/src/main/java/mattrixwv/ProjectEuler/Benchmark.java index 22a6dd3..4a4313e 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Benchmark.java +++ b/src/main/java/mattrixwv/ProjectEuler/Benchmark.java @@ -109,7 +109,7 @@ public class Benchmark{ } //Runs all problems except a few that are specified because of run length private static void runAllShort(){ - //Ask how many times to run the problem + //Ask how many times to run the problems int timesToRun = getNumberOfTimesToRun(); //Run through all valid problem numbers, skipping a few that are in the tooLong list @@ -170,7 +170,7 @@ public class Benchmark{ System.out.print("Solving"); for(int cnt = 0;cnt < timesToRun;++cnt){ System.out.print('.'); - //Reset the data so you are actually counting the run time a second time + //Reset the data so you are actually counting the run time an additional time problem.reset(); //Solve the problem problem.solve(); @@ -181,7 +181,7 @@ public class Benchmark{ } //Prints the benchmark results of a problem private static String getBenchmarkResults(Problem problem, double totalTime, int timesRun){ - //Calculate the averate run time of the problem + //Calculate the average run time of the problem totalTime /= timesRun; String timeResults = Stopwatch.getStr(totalTime); diff --git a/src/main/java/mattrixwv/ProjectEuler/Driver.java b/src/main/java/mattrixwv/ProjectEuler/Driver.java index 5c8a743..47691b4 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Driver.java +++ b/src/main/java/mattrixwv/ProjectEuler/Driver.java @@ -26,7 +26,7 @@ import java.util.Scanner; public class Driver{ - private static enum SELECTIONS{SOLVE, DESCRIPTION, LIST, EXIT, BENCHMARK, SIZE}; + private static enum SELECTIONS{SOLVE, DESCRIPTION, LIST, BENCHMARK, EXIT, SIZE}; private static final Scanner input = new Scanner(System.in); public static void main(String[] args){ @@ -58,7 +58,7 @@ public class Driver{ private static SELECTIONS getMenuSelection(){ Integer selection = input.nextInt(); while(!isValidMenu(selection)){ - System.out.println("That is an invalid option!Press Enter to continue"); + System.out.println("That is an invalid option!\nPress Enter to continue"); printMenu(); selection = input.nextInt(); } diff --git a/src/main/java/mattrixwv/ProjectEuler/ProblemSelection.java b/src/main/java/mattrixwv/ProjectEuler/ProblemSelection.java index 81eb71b..c5ac570 100644 --- a/src/main/java/mattrixwv/ProjectEuler/ProblemSelection.java +++ b/src/main/java/mattrixwv/ProjectEuler/ProblemSelection.java @@ -31,7 +31,7 @@ import mattrixwv.ProjectEuler.Problems.*; public class ProblemSelection{ private static final Scanner input = new Scanner(System.in); - public static final ArrayList PROBLEM_NUMBERS = new ArrayList(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + public static final ArrayList PROBLEM_NUMBERS = new ArrayList(Arrays.asList( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 67));