Here is the problem: Write an application that inputs one number consisting of five digits from the user, separates the number into in individual digits and prints the digits separated from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types in the number 42339, the program should input 4 2 3 3 9.
Here is my code so far but I am stuck. I am not taking this in school, but I want to learn this language
mport java.util.Scanner;
public class Seperating {
public static void main ( String[] args)
{
Scanner input = new Scanner(System.in);
int number = 0 ;
System.out.printf("%d" , number );
System.out.print("Enter integer");
number = input.nextInt();
}
}
but I am not getting the result I wanted what am I doing wrong