class Goo { public static void main(String[ ] args) { Character i = new Character( 'x' ) ; Character j = new Character( 'x' ) ; System.out.print( ( i == j ) + " " ); System.out.print( i . equals ( j ) ); } }