摘要: java 正则校验 阅读全文
posted @ 2019-06-21 19:41 it-pupil 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 字符串与int类型的互相转换 String int int String 阅读全文
posted @ 2019-06-21 19:40 it-pupil 阅读(15417) 评论(0) 推荐(1) 编辑
摘要: ``` Date: 表示特定的瞬间,精确到毫秒,通过方法设定自己所表示的时间,可以表示任意的时间 System.currentTimeMillis() :返回的当前系统时间, 1970-1-1 至今的毫秒数 SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); // 使用指定的模式进行时间对象的构建 //格式化... 阅读全文
posted @ 2019-06-21 19:38 it-pupil 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 修饰符总结 修饰符 类 成员变量 成员方法 构造方法 public Y Y Y Y default Y Y Y Y protected Y Y Y private Y Y Y abstract Y Y static Y Y final Y Y Y 一个java文件中只放置一个类, 如果一个文件中有多 阅读全文
posted @ 2019-06-21 17:10 it-pupil 阅读(475) 评论(0) 推荐(0) 编辑
摘要: static与代码块: static 构造代码块 面试题 阅读全文
posted @ 2019-06-21 12:48 it-pupil 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: ArrayList(集合) createDemo: addDemo: getDemo: sizeDemo: removeDemo: setDemo: 阅读全文
posted @ 2019-06-21 11:26 it-pupil 阅读(204) 评论(0) 推荐(0) 编辑
摘要: IO流: 低效O: FileWriter初始化操作 FileWriter(String Filename, boolean append) // 参数append 默认为false FileWriter对文件的写入操作 void write(String str); void write(Strin 阅读全文
posted @ 2019-06-21 11:13 it-pupil 阅读(5311) 评论(0) 推荐(0) 编辑