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