What causes “Can't find Symbol” and how to fix it?

前端 未结 5 1555
春和景丽
春和景丽 2020-12-19 08:06

I\'ve been trying to figure this out, I\'ve run it in different programs so it\'s definitely in the code. Probably something easy too. The error says

5条回答
  •  不思量自难忘°
    2020-12-19 08:11

    password 
    

    is a local variable declared in the constructor of Password2. It is not in scope in your EnterButtonHandler.actionPerformed method. Make it an instance variable to resolve.

提交回复
热议问题