# isFound is not a constructor, and you're not even using it in your Main class? And the value is only assigned in your enterBtn which you're not calling?