String[] words=(String[])vData.toArray(new String[2]);
request.setAttribute("list", Arrays.asList(words));
与
String[] words = {"absolute", "anyone", "anything", "apple", "abandon", "breach", "break", "boolean"};
request.setAttribute("list", Arrays.asList(words));
有什么区别?
上面一个报错
request.setAttribute("list", Arrays.asList(words));
与
String[] words = {"absolute", "anyone", "anything", "apple", "abandon", "breach", "break", "boolean"};
request.setAttribute("list", Arrays.asList(words));
有什么区别?
上面一个报错
words[0] = "";
words[1] = "";