String.intern() – there are better ways
I don’t want to write a “considered harmful” article (because they are
harmful), but after
experimenting with different solutions I do have a strong opinion that
there almost no reason to use String.intern() in Java. But let us
proceed step-by-step.
First of all, what does String.intern() do ...
more ...