public class String3 { public static void main ( String [] args ) { String emptyString = new String(); System.out.println ( emptyString ); String aGreeting; aGreeting = new String("Hello world"); System.out.println ( aGreeting ); aGreeting = "Hello world 2"; System.out.println ( aGreeting ); String anotherGreeting = new String ( aGreeting ); System.out.println ( anotherGreeting ); } }