java中定义数组的格式有:1、【int[] arr = new int[5]】;2、【int[] arr = new int[]{1,2,3,4,5}】。在java语言中,声明数组时不能指定其长度(数组中元素的个数)。
技术文章 / 下载软件趣味内容 / 专业带飞