not a statement error, illegal start of type
<pre><code>import java.util.*;

public class ulang {

    public static void main(final String[] args) {
        int a;
        int b;
        int sum;

        Scanner scan = new Scanner(System.in);
        System.out.println("Enter num 1: ");
        a = in.nextLine();
        System.out.println("Enter num 2: ");
        b = in.nextLine();
        {
            sum = a + b;
        }

        for (i = 0; i &lt; 5; i++) {
            (sum &gt;= 10)
                System.out.println("Congratulations");
            else
                System.out.println("Sum of the number is Less than 10");
        }

    }
}
</code></pre>

<p>I'm weak on looping especially in Java. So I need some corrections on my coding, but I have no idea how to fix it.</p>

<p>The coding should run like this: User need to insert 2 numbers and the program will calculate the sum of both number. After that, the program will determine if the total of sum is >=10 or &lt;10. If the sum >=10, "Congratulations" will appear but if it is &lt;10, then "The sum of number less than 10" will appear. How to fix it?</p>
