大神们,求解??
进制转换做这一步有必要吗??
char[] array = arr.toCharArray();
char[] number ={ '0', '1', '2', '3', '4', '5', '6', '7','8', '9' };
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < number.length; j++) {
if (array[i] == number[j]) {
continue;
}
if (j >= number.length) {
break;
}
}
}
做这一步有必要吗? |
|