(Integer.parseInt(mMth) % 4)==0 //ok
<String to int array>
int[] results = new int[items.length];
for (int i = 0; i < items.length; i++) {
try {
results[i] = Integer.parseInt(items[i]);
} catch (NumberFormatException nfe) {};
}
String a = String.valueOf( 2 ); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int |
沒有留言:
張貼留言