int number convert to int[] for each number java code example Example: convert string to int java String myString = "1234"; int foo = Integer.parseInt(myString);