int val = 1234;char[] valChar = (val + "").toCharArray();System.out.println(valChar[0]);System.out.println(valChar[1]);System.out.println(valChar[2]);System.out.println(valChar[3]);