Java中的数组问题

java.util.Arrays 

This class deals with 'real' arrays in java, in the form of T[]. Thus it doesn't deal with ArrayList<T>, java.util.Collections deals with this one.

 

How to print an array in Java?

For T[], use java.util.Arrays.toString()

For ArrayList<T>, use list.toString()

posted @ 2014-06-05 07:21  门对夕阳  阅读(116)  评论(0编辑  收藏  举报