User Tools

Site Tools


java:io:printstream:println

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:io:printstream:println [2012/11/23 13:46]
127.0.0.1 external edit
java:io:printstream:println [2013/04/04 15:00] (current)
94.222.251.147 added a new example
Line 15: Line 15:
         System.out.println("Hello");         System.out.println("Hello");
         System.out.println("I am a programmer");         System.out.println("I am a programmer");
 +        
 +        System.out.println(" 3 + 4 = " + 3+4 ); // appends 3 and 4 to the string
 +        System.out.println(" 3 + 4 = " + (3+4) ); // calculate 3+4 before the string "7" added
 </code> </code>
  
Line 21: Line 24:
     Hello     Hello
     I am a programmer     I am a programmer
 +    3 + 4 = 34
 +    3 + 4 = 7
advertising
java/io/printstream/println.txt · Last modified: 2013/04/04 15:00 by 94.222.251.147

Impressum Datenschutz