Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 13738
Total Votes: 144 votes
Average Rating: 3.81 out of 5
Category: JAVA/Core JAVA
Description:There are many ways to compare two strings in java. this Java program example explores four different way e.g. using ==, equals, equasIgnoreCase and CompareTo. Many people make mistake of comparing String using == operator which is not correct if you are comparing String for content than use equals() method.