标签:style blog color sp java div log bs as
Java中数组的静态初始化方式如下:
int[] a = {1,2,3}; T[] t = { new T(), new T(), new T()};
动态初始化方式如下:
int[] a = new int[3]; a[0] = 1; a[1] = 2; a[2] = 3; T[] t = new T[3]; t[0] = new T(); t[1] = new T(); t[2] = new T();
标签:style blog color sp java div log bs as
原文地址:http://www.cnblogs.com/qql1986/p/4142439.html