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
It's simple: use new incListener() instead of incListener(). The later is trying to call a method named incListener, the former creates an object from the class incListener, which is what we want.
new incListener()
incListener()
incListener