please give any idea

please give an actual question.
what do you want to compare Strings to ?
references ? use the '==' comparator.
value ? use the equals method.
value, except for case equality ? use the equalsIgnoreCase method.
substrings ? use indexOf, or contains.
chars ? use an iteration and '==', then, use a counter and compare the value of said counter to the total length of the String

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.