mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Fixed a small possible error
This commit is contained in:
@@ -83,7 +83,7 @@ public class Driver{
|
|||||||
//This selection solves all problems in order
|
//This selection solves all problems in order
|
||||||
if(problemNumber.equals(0)){
|
if(problemNumber.equals(0)){
|
||||||
//Solve to every valid problem number, skipping over 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
|
//Solve the problems
|
||||||
System.out.print(PROBLEM_NUMBERS.get(problemLocation).toString() + ". ");
|
System.out.print(PROBLEM_NUMBERS.get(problemLocation).toString() + ". ");
|
||||||
solveProblem(PROBLEM_NUMBERS.get(problemLocation));
|
solveProblem(PROBLEM_NUMBERS.get(problemLocation));
|
||||||
@@ -145,7 +145,7 @@ public class Driver{
|
|||||||
private static void descriptionMenu(){
|
private static void descriptionMenu(){
|
||||||
//Give some extra space to print the description
|
//Give some extra space to print the description
|
||||||
System.out.println("\n");
|
System.out.println("\n");
|
||||||
|
|
||||||
//Get the problem number
|
//Get the problem number
|
||||||
Integer problemNumber = getProblemNumber();
|
Integer problemNumber = getProblemNumber();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user