问答题

简答题 举例说明如何声明、创建和初始化数组。

【参考答案】

声明数组:int a[] 或 int[]a
创建数组:a=new int[]
初始化int a[]={1,2,3,4,5}