摘要: /** * 数组的三种定义方法 * * 1.数组类型[] 数组名=new 数组类型[数组长度]; * 2.数组类型[] 数组名={数组0,数组1,数组2,数组3,....}; * 3.数组类型[] 数组名=new 数组类型[]{数组0,数组1,数组2,...}; * */ public class  阅读全文
posted @ 2017-12-15 16:51 像艳遇一样忧伤c 阅读(609) 评论(0) 推荐(0) 编辑
摘要: //一维数组String[] str = new String[5]; //创建一个长度为5的String(字符串)型的一维数组String[] str = new String[]{"","","","",""};String[] str = {"","","","",""};//二维数组Stri 阅读全文
posted @ 2017-12-15 16:49 像艳遇一样忧伤c 阅读(37486) 评论(0) 推荐(1) 编辑