import java.util.ArrayList;
public class ArrayListIndex{
public static void main(String[] argv){
ArrayList l = new ArrayList();
l.add("John");
l.add("Nate");
l.add("Norman");
l.add("Omar");
l.add("Mark");
System.out.println("Index of 'John': "+ l.indexOf("Herman"));
System.out.println("Index of 'John': "+ l.indexOf("Nate"));
System.out.println("Index of 'John': "+ l.indexOf("John"));
}
}