From 37ca547aa7b2d389c792b2264f650daf0ef8ff07 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Fri, 12 Jun 2020 19:31:06 -0400 Subject: [PATCH] Fixed a small possible error --- src/main/java/mattrixwv/ProjectEuler/Driver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mattrixwv/ProjectEuler/Driver.java b/src/main/java/mattrixwv/ProjectEuler/Driver.java index c03a609..9d8565f 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Driver.java +++ b/src/main/java/mattrixwv/ProjectEuler/Driver.java @@ -83,7 +83,7 @@ public class Driver{ //This selection solves all problems in order if(problemNumber.equals(0)){ //Solve to every valid problem number, skipping over 0 - for(Integer problemLocation = PROBLEM_NUMBERS.get(1);problemLocation < PROBLEM_NUMBERS.size();++problemLocation){ + for(Integer problemLocation = 1;problemLocation < PROBLEM_NUMBERS.size();++problemLocation){ //Solve the problems System.out.print(PROBLEM_NUMBERS.get(problemLocation).toString() + ". "); solveProblem(PROBLEM_NUMBERS.get(problemLocation)); @@ -145,7 +145,7 @@ public class Driver{ private static void descriptionMenu(){ //Give some extra space to print the description System.out.println("\n"); - + //Get the problem number Integer problemNumber = getProblemNumber();