The local variable xxx is never read

后端 未结 6 1654
不思量自难忘°
不思量自难忘° 2021-01-29 13:24

This is my code:

boolean startGameBoolean;
Bundle extras = getIntent().getExtras();
extras.getInt(\"startGameBoolean\");
if (startGameBoolean = true){
    counte         


        
6条回答
  •  旧巷少年郎
    2021-01-29 14:05

    I had a similar error... for this line

    JLabel label = new JLabel("You have $" + amountInAccount + " in your account.");

    I used Quick fix (Ctrl+1) and chose Remove 'label', keep side-effect assignments...

    and the code became

    new JLabel("You have $" + amountInAccount + " in your account.");

提交回复
热议问题