Source of TestNumberAndStringOutput.java


  1: //TestNumberAndStringOutput.java
  2: 
  3: public class TestNumberAndStringOutput
  4: {
  5:     public static void main(String args[])
  6:     {
  7:         //Be careful to distinguish between the following ...
  8:         //===================================================
  9:         System.out.println(2 + 9 + " is the sum.");
 10:         System.out.println("The sum is " + 2 + 9 + ".");
 11:     }
 12: }
 13: