Hacker News new | ask | show | jobs
by chrisseaton 2551 days ago
> String.substring in Java does exactly that.

It used to - it doesn’t these days, where it now copies.