how do i get the text of a dropdown menu?Code:static String[] list = new String[20]; for (int i=0; i<20; i++) { if (choice.getSelectedIndex() = list[i]) { qty.setText(list[i+1]); price.setText(list[i+2]); } }
i need to do comparison of value between the choice n array
e.g
in dropdown menu choice, the value is "red" then compare against the array list[20] -->list[5]="red"
can show code example?




Reply With Quote