Schleife durch die Zahl Java

        int num = 458; // Sample input
        String sNum = Integer.toString(num);
        
        for (int i = 0; i < sNum.length(); i++)
        {
            System.out.print(sNum.charAt(i));
        }
CompSciGeek