So for some reason my class thinks my If statements } is its } and i cant fix it.
You’ve declared the variables on lines 17 and 18 as public but that’s not allowed inside of a method and it’s confusing the compiler. Remove the public keyword from those lines and the error will go away.
1 Like
thanks im used to java code so thats why i made that mistake C:
