Lecture 22
17
String constructors
•String s;
•s = “hello”; //common and convenient
•s = new String(“hello”);
•char[ ] charArray = {‘O’, ‘K’} ;                        s = new String( charArray );
•String t = new String(s);