trying to add 1 to a variable and it says Local variable count defined in an enclosing scope must be final or effectively final in java

后端 未结 0 1262
孤城傲影
孤城傲影 2021-02-02 08:00

btn is a JButton the title says and this is my code:

btn.addActionListener(new ActionListener()
        {
          public void actionPerformed(ActionEvent e)
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题