上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: Throwable 类: javal.lang.Throwable :是Java中所有错误或异常的父类。 子类:1、Exception: 编译期异常:子类:RuntimeException:运行期异常。处理后程序可继续运行 2、Error:错误, 必须修改后才能继续运行。 异常产生过程的解析: 1: 阅读全文
posted @ 2019-04-25 17:20 张玉昊 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Map集合: java.util,Map<k,v> 特点:1、键值对 2、key-value一一对应 3、key不允许重复。 Map常用实现类: java.util.HashMap<k,v> 集合 implement Man<k,v> 接口。 HashMap的特点:1、HashMap集合,底层是哈希 阅读全文
posted @ 2019-04-24 11:47 张玉昊 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 自定义和使用含有泛型的类: 自定义含有泛型的方法。 格式: 修饰符 <泛型> 返回值类型 方法名 (参数列表【泛型】){方法体} 自定义和使用含有泛型的接口: 泛型的通配符: ?:代表任意的数据类型。 使用方式: 不能 受限泛型 泛型的上限限定: ? extends E 代表使用的泛型只能是E类型的 阅读全文
posted @ 2019-04-19 16:39 张玉昊 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 原文: A goof idea question:What does Jane have with her coffee? Shall I make some coffe, Jane? That's a good idea, Charlotte. It's ready. Do you want an 阅读全文
posted @ 2019-04-19 13:44 张玉昊 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Collection集合。 java.util.Collection 接口。 没有索引 是所有单列集合的最顶层的接口,里面定义了所有单列集合共性的方法。 任意的单列集合都可以使用Collecion接口中的方法。 共性的方法: ............................ Iterator 阅读全文
posted @ 2019-04-18 18:38 张玉昊 阅读(237) 评论(0) 推荐(0) 编辑
摘要: object类: 1、equals方法: public boolean equals (Object obj) , 指示其他某个对象是否与此对象“相等” 源码:public boolean equals(Object obj){ return(this==obj) } ==: 基本类型:比较值。 引 阅读全文
posted @ 2019-04-17 17:15 张玉昊 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 第一册: It's too small. Do you like this dress,madam? I like the colour very much.It's a lovely dress,but it's too small for me. What about this one? It' 阅读全文
posted @ 2019-04-17 13:05 张玉昊 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 内部类: 1、成员内部类。 内用外,随意访问。 外用内,需要内部类对象。 使用: 1、间接方式:在外部类的方法中,使用内部类,然后main只是调用外部类的方法。 main中,调用methodBody的时候使用了内部类。 2、直接方式:外部类.内部类 对象名 =new 外部类(). new 内部类 ( 阅读全文
posted @ 2019-04-16 14:58 张玉昊 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 原文: Full of mistakes. Where's Sandra,Bob? I want her. Do you want to speak to her? Yes I do. I want her to come to my office.Tell her to come at once. 阅读全文
posted @ 2019-04-16 13:38 张玉昊 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 原文:The French text. How was the exam, Richard? Not too bad. I think I passed in English and Mathematics.The questions were very easy.How about you ,Ga 阅读全文
posted @ 2019-04-15 15:41 张玉昊 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页