public void evenAfterOdd() throws Exception {
Node temp;
Node temp4;
int o=0;
while(o < this.size()) {
temp = this.getNodeAt(o);
if (temp.data % 2 == 0) {
if (o == 0) {
this.head = this.head.next;
this.tail.next = temp;
temp.next = null;
} else {
temp4 = this.getNodeAt(o - 1);
temp4.next = temp4.next.next;
this.tail.next = temp;
temp.next = null;
}
}
o = o + 1;
}
}