IIRC interning of Strings has been implied String behavior since the Java 1.2 VM.
For example: String one = "ham"; String two = "ham"; if(one == two) System.out.println("Same!"); will print 'Same'. -Riyad On Monday 10 May 2004 09:30 am, Michael McGrady wrote: > Anyone know whether > > public void setValue(String value) { > this.value = value.intern(); > } > > sets the this.value to a pooled String? I am trying to avoid a separate > call to intern() after setting the value. Thanks. > > Michael McGrady > > > LEGAL NOTICE --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]