摘要:
lambda优化日志案例 public class Demo { public static void show_log(int i ,String msg){ if (i == 1){ System.out.print(msg); } } public static void main(Strin 阅读全文
摘要:
package demo06; import java.io.Serializable; public class Pserson implements Serializable { private static final long serialVersionUID = 1L; private S 阅读全文
摘要:
public boolean equals(Object obj) { //使用乡下转型,把object转换成Person类型 if (obj instanceof Person){ Person p = (Person)obj; return this.name.equals(p.name) && 阅读全文