FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  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.  
Name  

concat()

   
Examples  
String sa1[] = { "OH ", "NY ", "CA "}; 
String sa2[] = { "KY ", "IN ", "MA "}; 
String sa3[] = concat(sa1, sa2); 
print(sa3);  // Prints "OH NY CA KY IN MA " 

Description   Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields { 1, 2, 3, 4, 5, 6 }. Both parameters must be arrays of the same datatype.
   
Syntax  
concat(array1, array2)
   
Parameters  
array1, array2   booleans[], bytes[], chars[], ints[], floats[], or Strings[]

   
Returns   Array (the same datatype as the input)
   
Usage   Web & Application
   
Related   splice()
 
 






   
 
Updated: Fri Jul 15 16:35:35 PDT 2005
 
 








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