How to get relative index of array element based upon a stri

admin

Administrator
Staff member
In JavaScript you can create an Array based on String variables so that youcan get the relative index of any particular element based upon the Stringvalue in another array. e.g.column_name = new Array();column_name_idx = new Array();column_name[0] = "colname1";column_name_idx[column_name[0]] = 0;index = column_name_idx["colname1"];I'm at a complete loss on how to convert this to Java.Thanks,Gary
 
Back
Top