摘要: 装箱:值类型-->引用类型。 拆箱:引用类型-->值类型 装箱:把值类型拷贝一份到堆里。反之拆箱。 具有父子关系 是拆装箱的条件之一。 所以: 装的什么类型,拆的时候也必须是对应类型。 使用方法时看是否装拆箱:看需要的参数和传入的参数的集体类型。 使用泛型集合避免装拆箱。 阅读全文
posted @ 2019-03-14 14:59 张玉昊 阅读(404) 评论(0) 推荐(0)
摘要: 原文: An interesting climate. A:where do you come from? B:I come from England. A:What's the climate like in your country? B:It's mild,but it's not alway 阅读全文
posted @ 2019-03-14 13:59 张玉昊 阅读(161) 评论(0) 推荐(0)
摘要: 原文: A pleasant climate. A:Where do you come frome? B:I come from Greece. A:What's the climate like in your country? B:It's very pleasant. A:What's the 阅读全文
posted @ 2019-03-14 13:28 张玉昊 阅读(156) 评论(0) 推荐(0)
摘要: 集合命名空间: using system.collections. 非泛型集合 using system.collections.Generic. 泛型集合 为什么要用集合: 1、数组一旦声明长度就固定了。 2、集合有很多方法可以用 等 常用集合: 类似数组集合:ArrayList List<> 键 阅读全文
posted @ 2019-03-14 10:44 张玉昊 阅读(344) 评论(0) 推荐(0)