There’s an extra unnecessary } in your app.
I thing you just put extra one at line System.out.println("Nope.");} Remove it and the code will compile, making your IDE happy =)
Or remove any other closing } at the end of the program.
1
solved Code fails when class definition closed [closed]