android - String List array search for a string -
im having problems searching through list array trying find string , storing string variable called name
private list<string> listview_array1 = new arraylist<string>(); private list<string> listview_array2 = new arraylist<string>(); private list<string> listview_array3 = new arraylist<string>(); string name1 = null; if(listview_array1.contains("the")) { //assign value name1 system.out.println(name1); }
documentation friend. in general first line of question of how use class it's docs.
http://developer.android.com/reference/java/util/arraylist.html
as question want indexof method. details on page above.
Comments
Post a Comment