Class, interface, or enum expected error

前端 未结 2 1389
慢半拍i
慢半拍i 2021-01-22 12:17

I have tried just about everything I can think of to fix my error but I;m completely stumped. I keep getting a \"class, interface, or enum expected\" error. What am I missing?

2条回答
  •  感情败类
    2021-01-22 13:11

    You are adding one extra brace '}' at the end...just remove it

    If wanna keep safe from these kind of errors in future,consider formatting your code properly.(Use Ctrl+shift+f for eclipse and Alt+shift+f for netbeans)

提交回复
热议问题