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  

charAt()

   
Exemplos  
String str = "CCCP"; 
char c1 = str.charAt(0); 
char c2 = str.charAt(1); 
char c3 = str.charAt(str.length()-1); 
println(c1 + ":" + c2 + ":" + c3);  // Prints 'C:C:P' 

Descrição   Returns the character at the specified index. An index ranges from 0 to the length of the string minus 1. The first character of the sequence is at index 0, the next at index 1, etc.
   
Sintaxe  
charAt(index)
   
Parâmetros  
index   int: the index of the character

   
Retorno   char
   
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