public static boolean isMultipleFive(int number) {
String temp = ""+number;
char c = temp.charAt(temp.length()-1);
return c == '5' || c == '0';
}
--- Update ---
...
Type: Posts; User: andreaita44
public static boolean isMultipleFive(int number) {
String temp = ""+number;
char c = temp.charAt(temp.length()-1);
return c == '5' || c == '0';
}
--- Update ---
...