上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: package com.day16.File; import java.io.File;import java.io.FilenameFilter; public class FileSix { public static void main(String[] args) { File dir=ne 阅读全文
posted @ 2018-05-18 16:36 简简单单zjl 阅读(127) 评论(0) 推荐(0) 编辑
摘要: package com.day16.File; import java.io.File; public class FileFive { public static void main(String[] args) { fun(); //开发中一般用此方法 File dir = new File(" 阅读全文
posted @ 2018-05-18 16:08 简简单单zjl 阅读(317) 评论(0) 推荐(0) 编辑
摘要: package com.day16.File;/* * 创建功能: * public boolean createNewFile():创建文件,若存在这样的文件就不创建了 * public boolean mkdir():创建文件夹,若存在这样的文件夹,就不创建了 * public boolean 阅读全文
posted @ 2018-05-17 22:40 简简单单zjl 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package com.day16.File; import java.io.File; /* * File(String pathname):根据一个路径得到File对象 * File(String parent, String child):根据一个目录和一个子文件/目录得到File对象 * F 阅读全文
posted @ 2018-05-17 22:12 简简单单zjl 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: package com.day16.Exception; public class ExceptionFinally { public static void main(String[] args) { try { System.out.println(1/0); }catch(Exception 阅读全文
posted @ 2018-05-16 16:56 简简单单zjl 阅读(94) 评论(0) 推荐(0) 编辑
摘要: package com.day16.Exception;/* * 编译时异常的抛出必须对其进行处理 * 运行时异常的抛出可以处理也可以不处理 * throws 用在方法声明后面,跟的是异常类名 * throw 用在方法体内,跟的是异常对象名 */ public class ExceptionFive 阅读全文
posted @ 2018-05-16 16:40 简简单单zjl 阅读(160) 评论(0) 推荐(0) 编辑
摘要: package com.day16.Exception; public class ExceptionTwo { public static void main(String[] args) { int a=10; int b=0; int[] arr= {1,2,3,4,5}; try { Sys 阅读全文
posted @ 2018-05-15 22:58 简简单单zjl 阅读(142) 评论(0) 推荐(0) 编辑
摘要: package com.day16.Exception;/* * 异常处理的两种方式 * 1.try...catch...finally * *try catch * *try catch finally * *try finally * 2.throws * try:用来检测异常的 * catch 阅读全文
posted @ 2018-05-15 22:39 简简单单zjl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: package com.day15.Map;/* * HashMap嵌套HashMap */ import java.util.HashMap; import com.day15.bean.Student; public class HashMap_Two { public static void 阅读全文
posted @ 2018-05-14 21:24 简简单单zjl 阅读(125) 评论(0) 推荐(0) 编辑
摘要: package com.day15.Map; import java.util.Comparator;import java.util.TreeMap; import com.day15.bean.Student; public class TreeMapOne { public static vo 阅读全文
posted @ 2018-05-14 20:54 简简单单zjl 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页