Can you get a index number from arraylist input?

Sunday, May 4, 2014

Before you add the name to the list, I suppose you can use something like list.contains to check if it exists:



if(!list.contains(value)) {
list.add(value);
}


It will use the equals method to determine if the value is contained in the list







http://ift.tt/1kMB0Xa