I\'m familiar with the ways I can get an element position in array, especially the ones showed here: Element position in array
But my problem is I can\'t figure out
use the indexof method to get the position -
listPackages.indexOf(current_package)
http://download.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html#indexOf(java.lang.Object)