I\'m trying to see if an int has multiples of the same digit. Trying to do it without string methods or arrays. The main method I\'m having trouble with is hasDistinctDigi
public static boolean hasDistinctDigits(int number) {
int numMask = Math.floorMod(number, 10);
int numDigits = (int) Math.ceil(Math.log10(number+1));
for (int digitIdx = 0; digitIdx < numDigits; digitIdx++) {
int curDigit = (int)(number / Math.pow(10,digitIdx)) % 10;
if(numMask != curDigit) return false;
numMask = numMask & curDigit;
}
return true;
}