From a6aceb9e424a4aaea8dee20e738845375cfd2f47 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sun, 18 Oct 2020 20:50:19 -0400 Subject: [PATCH] Minor fixes --- src/main/java/mattrixwv/ProjectEuler/Problems/Problem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/mattrixwv/ProjectEuler/Problems/Problem.java b/src/main/java/mattrixwv/ProjectEuler/Problems/Problem.java index 2008e3b..3abb98b 100644 --- a/src/main/java/mattrixwv/ProjectEuler/Problems/Problem.java +++ b/src/main/java/mattrixwv/ProjectEuler/Problems/Problem.java @@ -35,6 +35,7 @@ public abstract class Problem{ //Constructor public Problem(String description){ this.description = description; + solved = false; } //Gets @@ -45,7 +46,7 @@ public abstract class Problem{ //Returns the result of solving the problem public abstract String getResult(); //Returns the time taken to run the problem as a string - public String getTime() throws InvalidResult{ + public String getTime() throws InvalidResult, Unsolved{ if(!solved){ throw new Unsolved(); }