What is wrong with my code?
KarthikNuti (0)

Can anyone help me fix my simple code for a grade calculator? Every time I fix it and it runs it says error. I believe there are no more errors. So can anyone roof read my code thank you?

You are viewing a single comment. View All
mat1 (2508)

The error traceback tells you what and where the error is.

calculator.java:6: error: ';' expected
    int grades = in.nextInt()
                             ^
calculator.java:7: error: illegal start of statement
    if ( grades >= 90)
                      ^
2 errors

In calculator.java, there seem to be a lot of issues. Since it doesn't look like you're using that file, you should delete it.
Please mark this comment as the answer if it helped you. Thanks!