Java Method Call Expected

后端 未结 7 1298
隐瞒了意图╮
隐瞒了意图╮ 2020-12-17 18:49

This is a java program with two buttons used to change an integer value and display it. However in IntelliJIDEA the two lines with

increase.addActionListene         


        
7条回答
  •  攒了一身酷
    2020-12-17 19:26

    It's sad but I had to Google this same error... I was staring at a method that returned a class. I left off the new operator.

    return () vs return new ()

提交回复
热议问题