mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 13:39:08 +08:00
style: include NAB_NEEDLESS_BOXING_PARSE
(#5184)
This commit is contained in:
@ -34,7 +34,7 @@ public final class HarshadNumber {
|
||||
* {@code false}
|
||||
*/
|
||||
public static boolean isHarshad(String s) {
|
||||
long n = Long.valueOf(s);
|
||||
final Long n = Long.valueOf(s);
|
||||
if (n <= 0) return false;
|
||||
|
||||
int sumOfDigits = 0;
|
||||
|
Reference in New Issue
Block a user