Fixed bug that caused a null pointer exception

This commit is contained in:
2020-07-11 13:34:01 -04:00
parent ea6d0d7d95
commit 4a745be0e1

View File

@@ -141,6 +141,7 @@ public class Problem13 extends Problem{
//Constructor
public Problem13(){
super("Work out the first ten digits of the sum of the one-hundred 50-digit numbers");
nums = new ArrayList<BigInteger>();
reserveVectors();
sum = BigInteger.ZERO;
}