Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ludwig Fischer   on Jun 02 In Java Category.

  
Question Answered By: Isabella Campbell   on Jun 02

That's why the gods invented the equals method  in java.lang.Object

If getName() returns a String then simply do:

if ( getName().equals(nameSearch) ) {
System.out.println("wow. it is working");
}

Share: 

 

This Question has 20 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on jframe not moveable Or get search suggestion and latest updates.


Tagged: