Hi I have written this code in Netbeans but it will show this warning for the name of this method ,would you please help me for what it shows this warning? thanks
public Node returnNode(int index) throws IndexOutOfBoundsException {
if (index < 0 || index > size) {
throw new IndexOutOfBoundsException();
} else {
for (int i = 0; i < index; i++) {
pointer = pointer.getNext();
}
}
return pointer;
}