How do I get up to the first n characters of a string in Java without doing a size check first (inline is acceptable) or risking an IndexOutOfBoundsException?

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *