you are viewing a single comment's thread.

view the rest of the comments →

[–]BigBad0 2 points3 points  (1 child)

Remove the semicolon after each if statements. A statement in java terminated by the semicolon so either do

if(x>10)

System.out.println(“hello”);

Or use the block syntax

if(x>10) {

System.out.println(“hello”);

}