ERROR: “Syntax error on token ”;“, , expected” Why?

前端 未结 3 798
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 09:38

I am going crazy now. Googled this, thought some kind of IDE bug. Maybe I am blind and can not see something...but this was OK just an hour ago. I commented out all of the c

3条回答
  •  盖世英雄少女心
    2021-01-05 10:07

    It's not an IDE bug.

    You have a semicolon after the closing } of the enum. That is not required.

    You've also got mPlayer = new MediaPlayer(); floating in your code, outside a method.

    I'd suggest reading a good book on Java, like this one: http://www.amazon.co.uk/Agile-Java-Crafting-Test-Driven-Development/dp/0131482394

    And a good book on Android: http://www.amazon.co.uk/Android-Application-Development-Dummies-Computers/dp/047077018X/ref=sr_1_1?s=books&ie=UTF8&qid=1333106527&sr=1-1

提交回复
热议问题