常用的java utils

java.util.Arrays

方法:asList 

实例:

List<String> stooges = Arrays.asList("Larry", "Moe", "Curly");
String[] names = new String[]{"Larry", "Moe", "Curly"};
List<String> stooges = Arrays.asList(names);

猜你喜欢

转载自maple-xf.iteye.com/blog/2244048