Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Node<AnyType> getNode(int index, int lower, int upper)
- {
- // Write code here to implement this method.
- if (index < 0) throw new IllegalArgumentException("Index can not be less than 0");
- else
- {
- if ((index >= lower) && (index <= upper))
- {
- for (int i = lower; i <= index; i++)
- {
- if (LLI.hasNext())
- LLI.next();
- }
- }
- return LLI.current;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement