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  

println()

   
Examples  
println("begin"); 
float f = 0.3; 
println("f is equal to " + f + " and i is equal to " + 1024); 
String s = "end"; 
println(s); 
 
// The above code prints the following lines: 
// begin 
// f is equal to 0.3 and i is equal to 1024 
// end 


float[] f = { 0.3, 0.4, 0.5 }; 
println(f); 
 
// The above code prints: 
// 0.3 
// 0.4 
// 0.5 

Description   Writes to the text area of the Processing environment's console. This is often helpful for looking at the data a program is producing. Each call to this function creates a new line of output. Individual elements can be separated with quotes ("") and joined with the string concatenation operator (+). Also writes the content of an array to the text area of the Processing environment. This is often helpful for looking at the data a program is producing. A new line is put between each element of the array. This function can only print 1D arrays, but can test to see if the content are null or not null for 2+ dimensional arrays.
   
Syntax  
println(data)
   
Parameters  
data   boolean, byte, char, color, int, float, String

   
Returns   None
   
Usage   IDE
   
Related   print()
 
 






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








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