From 3f52845d18b9d6fc483c0a24bc92984a1f8b3daf Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Fri, 12 Jun 2020 17:40:45 -0400 Subject: [PATCH] Updated some typos --- src/main/java/mattrixwv/ProjectEuler/Problems/Problem2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mattrixwv/ProjectEuler/Problems/Problem2.java b/src/main/java/mattrixwv/ProjectEuler/Problems/Problem2.java index 8c57cb4..39b1d42 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Problems/Problem2.java +++ b/src/main/java/mattrixwv/ProjectEuler/Problems/Problem2.java @@ -33,14 +33,14 @@ public class Problem2 extends Problem{ private static final int TOP_NUM = 3999999; public Problem2(){ - super("The sum of the even Fibonacci numbers less than 4,000,000"); + super("What is the sum of the even Fibonacci numbers less than 4,000,000?"); } public void solve(){ timer.start(); //Get a list of all fibonacci numbers < 4,000,000 ArrayList fibNums = Algorithms.getAllFib(TOP_NUM); Integer sum = 0; - //Step through very element in the list checking if it is even + //Step through every element in the list checking if it is even for(Integer num : fibNums){ //If the number is even add it to the running tally if((num % 2) == 0){