Hi everyone,
how do i push item with a givin index in a linkedlist.
e.g. linkedlist.add(element e, int index);
this is my function
public void push(Student s, int index){
if(isEmpty()){
start = s;
}else{
last.next = s;
}
last = s;
size++;
}