Scanner sc = new Scanner(System.in);String num = sc.nextLine();char[] chars = null;for(i=0;i<=num.length();i++){ chars[i] = num.charAt(i);}for(i=0;i<=chars.length;i++){ System.out.println(chars[i]);}