Here's my list example:
List<String> l2 = new ArrayList<String>();
l2.add("Apple");
l2.add("Kiwi");
l2.add("Orange");
So Basically I want to iterate through this list until it finds for example "Orange" then it'll return a Line number (3 in this example). But I'm really not sure how to do this. Anyone that can help me?