Fixed formatting error in result string

This commit is contained in:
2020-06-08 00:38:46 -04:00
parent 00890ec55d
commit 12d76ca77a

View File

@@ -58,7 +58,7 @@ public class Problem16 extends Problem{
timer.stop();
//Save the results
result = String.format("%d^%d = %s\nThe sum of the elements is %d\n", NUM_TO_POWER, POWER, num.toString(), sumOfElements.toString());
result = String.format("%d^%d = %s\nThe sum of the elements is %d\n", NUM_TO_POWER, POWER, num.toString(), sumOfElements);
}
}