I would like to key in my nirc number e.g. S1234567I and then put 1234567 individualy as a integer as indiv1 as cha
nirc
S1234567I
1234567
indiv1
cha
try { int indiv1 = Integer.parseInt ("" + nric.charAt(1)); System.out.println(indiv1); } catch (NumberFormatException npe) { handleException (npe); }