4 ms·
Yeah, I don't understand why the JDK dev did not take this approach. Even better, they can add a new API that allows developers specify the implementation that
by boomzilla 13y ago
Yeah, I don't understand why the JDK dev did not take this approach.
Even better, they can add a new API that allows developers specify the implementation that fits better. Something like String.substr(..., boolean allocateSpace) that defaults to the original behavior of substr.