FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Linguagem \ Ambiente \ Bibliotecas \ Comparação
 
   
   
Back  
   
  Referência para Processing (BETA) version 91+. Se você tem uma versão anterior, utilize a documentação inclusa em seu software. Se você encontrar quaisquer erros ou tiver quaisquer comentários, leve ao nosso conhecimento.  
Class   String
   
Nome  

equals()

   
Exemplos  
String str1 = "CCCP"; 
String str2 = "CCCP"; 
// Tests to see if str1 is equal to str2 
if(str1.equals(str2) == true) { 
  println("Equal");  // They are equal so this line will print 
} else { 
  println("Not equal"); 
} 

Descrição   Compares two strings to see if they are the same. This method is necessary because it's not possible to compare strings using the equality operator (==). Returns true if the strings are the same and false if they are not.
   
Sintaxe  
equals(str)
   
Parâmetros  
str   String: any valid String

   
Retorno   Boolean
   
Utilização   Web & Applicações
   
 
 






   
 
Original em inglês atualizado em: Fri Jul 15 16:36:11 PDT 2005
Tradução para o Português do Brasil: Luiz Ernesto Merkle
Atuallizada em: 30 de novembro de 2005, 9h00 (BRST)
 
 








Creative Commons License
 
  Processing é um projeto aberto iniciado por Ben Fry e Casey Reas  
  © Info