Using Classes Part I |
This returns a reference to a newly created String object that.new String ("hello world")
String s; s = new String ("The british are coming");
Using s we can continue to use this newly created object:
String upper, lower; upper = s.toUpperCase (); lower = s.toUpperCase (); System.out.println (s);
Based on material by: Alan Kaplan of Clemson Univesity