LinkedList ListNode class

LinkedList
SOURCE : BubbleSort.java


public class ListNode {

private int data;
private ListNode next;

public ListNode(int data) {
this.data = data;
}

public int getData() {
return data;
}

public void setData(int data) {

this.data = data;
}

public ListNode getNext() {
return this.next;

}

public void setNext(ListNode next) {

this.next = next;
}
}






Sandeep Kumar D

Hi, I have written and developed this post so that most of people will be benefited. I'm committed to provide easy and in-depth tutorials on various technologies.I hope it will help you a lot.

- Sandeep Kumar D

Follow Me @Google+




SHARE

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment