I wanted to know if there\'s a native method in array for Java to get the index of the table for a given value ?
Let\'s say my table contains these strings :
String carName = // insert code here int index = -1; for (int i=0;i
After this index is the array index of your car, or -1 if it doesn't exist.
index