Correct the java syntax error