FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Back  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Class   String
   
Name  

length()

   
Examples  
String str1 = "CCCP"; 
String str2 = "Rabbit"; 
int l1 = str1.length(); 
int l2 = str2.length(); 
println(l1 + ":" + l2);  // Prints '4:6' 

Description   Returns the total number of characters included in the string as an integer number.
Note: You find the size of an array with the length field which works a little differently from String's length() method.
   
Syntax  
charAt()
   
Returns   int
   
Usage   Web & Application
   
 
 






   
 
Updated: Fri Jul 15 16:36:11 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info