View RSS Feed

Java String

All about Java String.

  1. Compare strings

    by , 04-26-2012 at 06:58 PM
    Two strings comparison will be learnt in this section. Java lang package gives methods for comparison of 2 with either lower or upper case. Facility is being provided by the equals() method to compare 2 strings. Equal() methods are used by the given program to help you for comparing 2 strings. In case when both of the strings present are equal then a message “Given strings equal” would be displayed. Otherwise, “given strings unequal” would be shown.
    Description of code:
    equals(): ...
    Categories
    Compare