摘要:
/** * 数组的三种定义方法 * * 1.数组类型[] 数组名=new 数组类型[数组长度]; * 2.数组类型[] 数组名={数组0,数组1,数组2,数组3,....}; * 3.数组类型[] 数组名=new 数组类型[]{数组0,数组1,数组2,...}; * */ public class 阅读全文
摘要:
//一维数组String[] str = new String[5]; //创建一个长度为5的String(字符串)型的一维数组String[] str = new String[]{"","","","",""};String[] str = {"","","","",""};//二维数组Stri 阅读全文