摘要:
commons-io.jar: FileUtils 读取文件所有行 File file = new File("c:\\123.txt"); List<String> lines = FileUtils.readLines(file, "UTF-8"); 阅读全文
posted @ 2017-02-04 16:35
N神3
阅读(274)
评论(0)
推荐(0)
摘要:
二维数组声明并初始化数据String [][]a={ {"1","2","3"}, {"4","5","6"} };一维数组的形式:(1), int a[]; a = new int[5]; 等同于 int a[] = new int[5];(2), int[] a; a = new int[5]; 阅读全文
posted @ 2017-02-04 15:56
N神3
阅读(287)
评论(0)
推荐(0)
摘要:
声明一个数组 Java代码 String[] aArray = new String[5]; //声明数组 String[] bArray = {"a","b","c", "d", "e"}; //声明并初始化数组 String[] cArray = new String[]{"a","b","c" 阅读全文
posted @ 2017-02-04 15:36
N神3
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号