Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (class is template of T)
- 1 public T rangeCheck(int index)
- 2 throws ArrayIndexOutOfBoundsException
- 3 {
- 4 if (index < 0 || index >= this.length)
- 5 {
- 6 throw new ArrayIndexOutOfBoundsException();
- 7 }
- 8 return rawGet(index);
- 9 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement