Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的基本设置:
ArrayList<String> myList = new ArrayList<>(); myList.add("test"); String[] arr = myList.toArray(new String[myList.size()]); System.out.println(arr);
我得到了经典错误:[Ljava.lang.String;@1540e19d
任何人都可以解释并帮助我解决它吗?
利用
for(String s : arr){ System.out.println(s); }
而不是System.print.out();
System.print.out()