domrongpon
Programmer
My problem is about Linkedlist class,i want to create a link list and store an instance to it so i use
//My Java code
LinkedList list = new LinkedList(); // i declare new link list
ProcessBehavior pb=new ProcessBehavior(); // it is my instance
list.add(pb); // i add my instance to my link list
//
What's happen!!? i think pb is stored in list but i cannot get it from my linklist.When i get it by use method getFirst(), it return ProcessBehavior@744da14 to me.
**** Help me,please.
//My Java code
LinkedList list = new LinkedList(); // i declare new link list
ProcessBehavior pb=new ProcessBehavior(); // it is my instance
list.add(pb); // i add my instance to my link list
//
What's happen!!? i think pb is stored in list but i cannot get it from my linklist.When i get it by use method getFirst(), it return ProcessBehavior@744da14 to me.
**** Help me,please.