会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
star521
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
下一页
2018年4月25日
finalize()用途是释放一些其他做法开辟的内存空间,以及做一些清理工作 ; system.gc()垃圾收集器
摘要: //当一个对象没有任何引用指向它的时候,它才可以被垃圾回收器回收
阅读全文
posted @ 2018-04-25 16:45 star521
阅读(137)
评论(0)
推荐(0)
2018年4月24日
字符流OutputStreamWriter 简化FileWriter InputStreamWriter 简化FileReader
摘要: 恢复内容开始 OutputStreamWriter(OutputStream out) 创建使用默认字符编码的 OutputStreamWriter。 OutputStreamWriter(OutputStream out, String charsetName) 创建使用指定字符集的 Output
阅读全文
posted @ 2018-04-24 18:11 star521
阅读(288)
评论(0)
推荐(0)
字节流FileInputStream FileOutputStream四种读写,包装流BufferedOutputStream BufferedInputSream 缓冲区默认8192字节
摘要: 1 package test03; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOutputStream; 5 import java.io.FileInputStream; 6 import java.io.Fi
阅读全文
posted @ 2018-04-24 16:40 star521
阅读(816)
评论(0)
推荐(0)
2018年4月19日
BigInteger类的方法
摘要: BigInteger类的方法 * divide(BigInteger val) 返回其值为 (this / val) 的 BigInteger。 multiply(BigInteger val) 返回其值为 (this * val) 的 BigInteger。 subtract(BigInteger
阅读全文
posted @ 2018-04-19 21:16 star521
阅读(139)
评论(0)
推荐(0)
Integer类型比较相等
摘要: ‘ 1 package integer; 2 3 public class IntegerDemo1 { 4 public static void main(String[] args) { 5 6 Integer i1 = new Integer(128); 7 Integer i2 = new
阅读全文
posted @ 2018-04-19 19:44 star521
阅读(167)
评论(0)
推荐(0)
BigDecimal精确运算
摘要: 类 BigDecimal 构造方法 BigDecimal(double val) 将 double 转换为 BigDecimal,后者是 double 的二进制浮点值准确的十进制表示形式。 方法 divide(BigDecimal divisor) 返回一个 BigDecimal,其值为 (this
阅读全文
posted @ 2018-04-19 17:27 star521
阅读(116)
评论(0)
推荐(0)
Date类和SimpleDateFormat类
摘要: Date类 * Date方法 * getTime() 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数。 * setTime(long time) 设置此 Date 对象,以表示 1970 年 1 月 1 日 00:00:00 GMT 以后 time
阅读全文
posted @ 2018-04-19 17:06 star521
阅读(150)
评论(0)
推荐(0)
String 方法
摘要: toCharArray() 字符串转字符数组char[] * indexOf('a') 返回指定字符/字符串第一次出现的索引 * startsWith("a")测定字符串是否以制定字符串开始 * endsWith("ab")测试字符串是否以指定字符串结束 split(String regex) 根据
阅读全文
posted @ 2018-04-19 15:50 star521
阅读(125)
评论(0)
推荐(0)
Character包装类
摘要: * Character char的包装类 方法: * isLowerCase(char a)是否为小写字母 * isUpperCase(char a)是否为大写字母 * isDigit(char a )是否为数字
阅读全文
posted @ 2018-04-19 15:45 star521
阅读(719)
评论(0)
推荐(0)
list接口的三种遍历方式
摘要: 1 /* 2 * list接口的三种遍历方式 3 * 4 */ 5 public class ListDemo2 { 6 7 public static void main(String[] args) { 8 List list = new ArrayList(); 9 10 list.add("hello"...
阅读全文
posted @ 2018-04-19 14:23 star521
阅读(419)
评论(0)
推荐(0)
2018年4月18日
hashCode() 和 equals() 方法比较和重写
摘要: 先hashCode(),如果hashCode()相同,再用equal()验证,如果hashCode()都不同,则肯定不同 然而hashCode()和equal()一样都是基本类Object里的方法,而和equal()一样,Object里hashCode()里面只是返回当前对象的地址,如果是这样的话,
阅读全文
posted @ 2018-04-18 13:49 star521
阅读(157)
评论(0)
推荐(0)
2018年4月10日
局部变量 成员变量
摘要:
阅读全文
posted @ 2018-04-10 08:43 star521
阅读(95)
评论(0)
推荐(0)
2018年4月9日
eclipse如何为java项目生成java Doc
摘要: eclipse如何为java项目生成java Doc 1.编写 2.生成 next 》》》》finish
阅读全文
posted @ 2018-04-09 17:36 star521
阅读(142)
评论(0)
推荐(0)
多态性
摘要: 多态分类: 普通类多态 (静态方法没有多态性 ,成员变量没有多态性) 1 package review07; 2 /* 3 * 多态的分类: 4 * 普通类多态(静态方法没有多态性 ,成员变量没有多态性) 5 * 抽象类多态(抽象父类的变量不能调用子类中特有的方法) 6 * 接口多态 7 * 8 *
阅读全文
posted @ 2018-04-09 15:05 star521
阅读(152)
评论(0)
推荐(0)
2018年4月8日
接口 interface 实现接口implements 抽象类 abstract 继承extends
摘要: 接口的应用: 1.对类进行扩展 2.接口多态 //接口是可以多继承的 public interface 接口名 extends 父接口名...{ //常量 //抽象方法 } 类设计原则: 高内聚:指的是一个类本身完成某项功能的能力 低耦合:指的是类鱼类之间的关联程度 抽象类和接口的对比: 关键字:接
阅读全文
posted @ 2018-04-08 16:57 star521
阅读(222)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
下一页
公告