Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to check duplicate string in java

String first = "Hello";
String second = "hELLo";

if(first.equal(second)) { 
	// Check if first string is equal to second string. lower/upper case matter.
}

if(first.equalsIgnoreCase(second)) {
	// Check if first string is equal to second string. lower/upper does not matter.
}
Comment

PREVIOUS NEXT
Code Example
Java :: pass a function as parameter 
Java :: how to find armstrong numbers in java 
Java :: int x = 3 & 5 
Java :: traversing treemap in java 
Java :: Java Thread Example by implementing Runnable interface 
Java :: return two values in java 
Java :: remove java ubuntu 20.04 stackoverflow 
Java :: how to replace in java 
Java :: public static void main(String[] args) in java 
Java :: Missing artifact com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT 
Java :: java anonmyous array eg 
Java :: MyLinkedList 
Java :: alphabet n vowelin java 
Java :: java android build secret keys 
Java :: Java Create a BufferedInputStream 
Java :: array list vs vector 
Java :: java compare lists 
Java :: Task :run FAILED Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException: 
Java :: horizontal recyclerview item width half of screen android 
Java :: get host from request object java 
Java :: is the function same as method in java 
Java :: split on . in java 
Java :: java regex for ip address 
Java :: check if input is empty java 
Java :: java string 
Java :: Java Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution. 
Java :: if ternaire java 
Java :: how to reverse numbers in java 
Java :: print statement in java, simplest java program, Hello World in Java 
Java :: java check array for duplicates 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =