Merge pull request #859 from shellhub/master

reduce code
This commit is contained in:
Yang Libin
2019-09-23 15:11:18 +08:00
committed by GitHub

View File

@ -39,11 +39,7 @@ public class Armstrong {
sum = sum + (remainder * remainder * remainder);
number = number / 10;
}
if (sum == temp) {
return true;
} else {
return false;
}
return sum == temp;
}
private static int inputInt(String string) {