> > I wouldn't do that. You'll most likely run into performance issues. > Duplicate strings should only arise with the use of new String(). Explicitly > calling intern() could cause an unexpected amount of memory usage in > PermGen.
I think you have this backwards. As James mentioned on this thread, string literals in your code are automatically interned, so there is no need to do what he is asking, because it is done by the compiler. http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#intern() -- Jeremy Thomerson http://www.wickettraining.com
