“Java igual string” Respostas de código

string java não é igual

String name = "John"; 
 
// prints true to standard system output. 
System.out.print(!name.equals("Alex")); 
Helpless Hornet

Java igual string

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.
}
Bredo

Respostas semelhantes a “Java igual string”

Perguntas semelhantes a “Java igual string”

Mais respostas relacionadas para “Java igual string” em Java

Procure respostas de código populares por idioma

Procurar outros idiomas de código