Soluzione 2.5

Ecco una possibile soluzione:
import java.util.Scanner;

public class IntReader
{
    public static void main(String[] args)
    {

	Scanner in = new Scanner(System.in);
	System.out.println("Enter an integer number, with at most 5 digits:");
	int input = in.nextInt();

	int i0 = input % 10;
	input = input / 10;
	int i1 = input % 10;
	input = input / 10;
	int i2 = input % 10;
	input = input / 10;
	int i3 = input % 10;
	input = input / 10;
	int i4 = input % 10;
	input = input / 10;
	
	System.out.println("The digits are:");
	System.out.println(i4 + " " + i3 + " " + i2 + " " + i1 + " " + i0);
    }
}