How to compare two strings

Showing Answers 1 - 1 of 1 Answers

Madhava

  • Oct 2nd, 2005
 

         We need to compare two strings we have a method equals(). Using this metods we can compare to strings like

 

Ex:-

String s1=?ram?;

String s2=?ram?;

 

       s1.equals(s2) it gives the Boolean result

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions