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 :
Use Arrays class to do this
Arrays
Arrays.sort(TYPES); int index = Arrays.binarySearch(TYPES, "Sedan");