Monday, 26 August 2013

Compare object name (reference name) with a string

Compare object name (reference name) with a string

How to compare name of an object to a string in Java?
For example:
class_name obj = new class_name();
and I want to compare object name obj with a string. What is the correct
way to do that?

No comments:

Post a Comment