Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. private Node<AnyType> getNode(int index, int lower, int upper)
  2.   {
  3.     // Write code here to implement this method.
  4.       if (index < 0) throw new IllegalArgumentException("Index can not be less than 0");
  5.       else
  6.       {
  7.           if ((index >= lower) && (index <= upper))
  8.           {
  9.               for (int i = lower; i <= index; i++)
  10.               {
  11.                   if (LLI.hasNext())
  12.                       LLI.next();
  13.               }
  14.           }
  15.           return LLI.current;
  16.       }
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement