Source of TestString.java


  1: // TestString.java
  2: // Tests for the existence of command-line parameters.

  4: public class TestString
  5: {
  6:     public static void main(String[] args)
  7:     {
  8:         String s = "Hello ";
  9:         AddToIt(s);
 10:         System.out.println(s);
 11:     }

 13:     static void AddToIt(String s)
 14:     {
 15:         s += "there!";
 16:         System.out.println(s);
 17:     }
 18: }