3 ms·
tldr - private static void rangeCheck(int arrayLen, int fromIndex, int toIndex { if (fromIndex > toIndex) throw new IllegalArgumentException("
by smaili 10y ago
tldr -
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex {
if (fromIndex > toIndex)
throw new IllegalArgumentException("fromIndex(" + fromIndex +
") > toIndex(" + toIndex+")");
if (fromIndex < 0)
throw new ArrayIndexOutOfBoundsException(fromIndex);
if (toIndex > arrayLen)
throw new ArrayIndexOutOfBoundsException(toIndex);
}
- deleted 10y ago[deleted]
- aexaey 10y agoYou may want to start lines with (at least) 4 spaces for HN to preserve original formatting.
- Jtsummers 10y ago2 spaces are all that's needed. OT: Really convenient use of emacs for formatting quotes. Copy the text into a text-mode buffer, put two spaces at the start, M-q and the whole thing is wrapped and each line prefixed with two spaces.
- andy_ppp 10y agoThis like saying we found a brush stroke in your painting that you copied from Picasso, look at the details of this one stroke you copied it's the same!!! Utterly absurd...