摘要: 上图是本篇博客所要写的类的继承图 java.util.Collection 添加 boolean add(E e) // append the element boolean addAll(Collection c) // append all element in c, must be the s 阅读全文
posted @ 2017-08-03 18:21 征程126 阅读(173) 评论(0) 推荐(0) 编辑
摘要: java.io.File 是操作文件夹及文件的类,具有跨平台的特性 Constructor File(String pathname) Creates a new File instance by the given pathname string FIle(File parent, String 阅读全文
posted @ 2017-08-03 14:18 征程126 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Constructor Object() Method Object clone() // protected shallow copy ,override it as public if the subclass use this method , // implement the Cloneab 阅读全文
posted @ 2017-08-02 22:21 征程126 阅读(287) 评论(0) 推荐(0) 编辑
摘要: StringBuilder 类是可修改的字符串类,内部由可变数组构成,如果需要频繁修改字符串,字符串追加等,最好使用此类 此类只能在单线程中使用,但效率较高,如果要在多线程中使用,用StringBuffer类,两类API完全相同 Constructor StringBuilder(); Constr 阅读全文
posted @ 2017-08-02 19:40 征程126 阅读(259) 评论(0) 推荐(0) 编辑
摘要: char charAt(int index) return the value at the index int compareTo(String other) returns a negative value if the string comes before other in dictiona 阅读全文
posted @ 2017-08-02 12:52 征程126 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ########## day17 包装类 System Math BigInteger Arrays #########构造方法 把字符串转换成int Integer in = Integer(String);int val = in.intValue(); int val = Integer.pa 阅读全文
posted @ 2017-08-02 09:37 征程126 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ########## day14 #####################ctrl+t 展示类继承树/*** @author 文档注释*/ javadoc.exe 生成java文档jar.exe 压缩类为jar包exclipse 中的 export 1环境变量配置JAVA_HOME jdk目录pa 阅读全文
posted @ 2017-08-01 10:05 征程126 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ############### day08 eclipse 使用 #####################Alt+/ 自动补全 sysoshift + enter 到下一行行首ctrl+shift+f 格式化代码ctrl+/ 单行注释ctrl+shift+/ 多行注释ctrl+shift+o 导包 阅读全文
posted @ 2017-07-30 18:52 征程126 阅读(165) 评论(0) 推荐(0) 编辑
摘要: java 中标识符可以为$符 java默认整数是int类型超出int型必须标明是long型char 为 2字节String 是引用类型 byte b = 1;b = b + 1; #会报错,类型不匹配, b提升为int,不能赋值给byte,需要强转 b += 1; # 可以,相当于b = (byte 阅读全文
posted @ 2017-07-29 15:33 征程126 阅读(283) 评论(0) 推荐(0) 编辑