editing the contents of an array list
how can you edit the contents of an array list using a value generated by the 开发者_如何学编程user using the scanner class.
many thanks
List<String> lst = new ArrayList<String>();
lst.add("a");
lst.add("b");
lst.add("c");
//now modifying contents
lst.set(1, "z");
精彩评论