Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 11667
Total Votes: 139 votes
Average Rating: 2.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.