问题描述
String[]words=(String[])vData.toArray(newString[2]);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]="";
时间: 2024-10-25 19:34:30