Java Method Call Expected

后端 未结 7 1321
隐瞒了意图╮
隐瞒了意图╮ 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:28

    Whenever a string object is created using new operator a new object is created which is what your program is looking for. The following link is useful in learning about the difference between a string and a new string. What is the difference between "text" and new String("text")?

提交回复
热议问题