/*
import java.util.*;
public class Java_Collection {
public static void main(
String args[]){
List theList=new Vector();
theList.add(0, "Chicago");
theList.add(1, "Vegas");
theList.add(4, "Jersey");
Iterator it=theList.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
*/
}
1.why the program is throwing runtime Exception?List is sorted by index and i was expecting the answer.
2.when i search javaranch,i found lots of questions as Arrays.asList.For SCJP1.4 exam,do i need to know about Arrays class and its methods.
please help on the above two questions