initially empty, is maintained privately by the * class {@code String}. * * When the intern method is invoked, if the pool already contains a * string equal to this {@code String} object as determined by * the {@link #equals(Object)} method...
* When the intern method is invoked, if the pool already contains a * string equal to this String object as determined by * the {@link#equals(Object)} method, then the string from the pool is * returned. Otherwise, this String object is added to the * pool and a reference to this ...
* class {@codeString}. * * When the intern method is invoked, if the pool already contains a * string equal to this {@codeString} object as determined by * the {@link#equals(Object)} method, then the string from the pool is * returned. Otherwise, this {@codeString} object is ad...
** When the intern method is invoked, if the pool already contains a * string equal to thisStringobject as determined by * the {@link #equals(Object)} method, then the string from the pool is * returned. Otherwise, thisStringobject is added to the * pool and a reference to thisString...
{@code String}. * * When the intern method is invoked, if the pool already contains a * string equal to this {@code String} object as determined by * the {@link #equals(Object)} method, then the string from the pool is * returned. Otherwise, this {@code String} object is added...
* class String. * * When the intern method is invoked, if the pool already contains a * string equal to this String object as determined by * the {@link #equals(Object)} method, then the string from the pool is * returned. Otherwise, this String ...
* class String.* * When the intern method is invoked, if the pool already contains a * string equal to this String object as determined by * the {@link #equals(Object)} method, then the string from the pool is * returned. Otherwise, this String object is added to the * pool and...
{@code String}.* * When the intern method is invoked, if the pool already contains a* string equal to this {@code String} object as determined by* the {@link #equals(Object)} method, then the string from the pool is* returned. Otherwise, this {@code String} object is added to the...
When the intern method is invoked, if the pool already contains a string equal to thisStringobject as determined by the {@link #equals(Object)} method, then the string from the pool is returned. Otherwise, thisStringobject is added to the ...
(Object)} method, then the string from the pool is * returned. Otherwise, this String object is added to the * pool and a reference to this String object is returned. * * It follows that for any two strings s and t, * s.intern() == t.intern() is true * if and only if s...