Minor fixes

This commit is contained in:
2020-10-18 20:50:19 -04:00
parent dfebcd3de5
commit a6aceb9e42

View File

@@ -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();
}