hello to everybody I have a linked list that contains objects each object contains two String field
I want to know how to check if the object that i want insert is already exists in the linked list
thank you
hello to everybody I have a linked list that contains objects each object contains two String field
I want to know how to check if the object that i want insert is already exists in the linked list
thank you
So, let me guess, an IP check will show that you're the same exact user as "help_please"? Since what you just asked is the same question he has asked (and I have answered) in two different threads.
hello to everybody I have a linked list that contains objects each object contains two String field
I want to know how to check if the object that i want insert is already exists in the linked list
thank you
List<String[]> list = new LinkedList<String[]>();
you should check
int n = list.indexOf(urStrObj);
n=-1 ---- it doesnt exiest.
n >=0 it exists at nth position
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.