Java创建数组的三种方法: [java] view plain copy import java.util.*; public class ArraysDemo01{ public static void main(String[] args){ int[] temp = {3,5,6,7,9,4,1,21,36,0}; int [] temp1 = new int[3]; temp1[0]=1; temp1[1]=1; temp1[2]=1; int vec[] = new int[]{1, 5, 3}; } }