Invalid token 'while' in class, struct, or interface member declaration in very simple code

后端 未结 5 590
你的背包
你的背包 2021-01-02 17:57

I am not sure what the problem is but I keep receiving this error when I try to use a while statement in my code.

Invalid token \'while\' in class,

5条回答
  •  萌比男神i
    2021-01-02 18:27

    There's nothing wrong with the while, it's something above it that's the problem. Check for mismatched braces and semicolons in a comment or something like that.

提交回复
热议问题