Because the Split function needs a
delimiter, and your int value wont contain one suitable I have had to use another method to split the intager after each number.
Take a look at this code. The given int value is split after each number and put into an Array which you can then work with..
import java.util.Scanner;
public class Konnor2 {
public static String stringInt;
public static void main(String[] args) {
System.out.println("Enter Integer Value: ");
Scanner sc = new Scanner(System.in);
stringInt = sc.next();
String splitInt[] = new String[stringInt.length() / 1];
for(int a = 0; a < splitInt.length; a++){
splitInt[a] = stringInt.substring(a * 1, a * 1 + 1);
System.out.println(splitInt[a]);
}
}
}
Let me know if you need help with coding the rest...