摘要:
# Lambda Expression 有了Lambda Expression,就不用再写anonymous classes。 写Lambda,首先要找到它的类型。 There is a restriction on the type of a lambda expression: it has t 阅读全文
摘要:
# 泛型 为什么需要泛型?generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. > 说白了就像Python动态语言的变量,是动态的, 阅读全文
摘要:
# 创建类 定义类Bicycle: ```java public class Bicycle { // the Bicycle class has // three fields public int cadence; public int gear; public int speed; // th 阅读全文