摘要:
equals方法实现了等价关系: 阅读全文
posted @ 2017-11-08 21:50
mzxl1987
阅读(186)
评论(0)
推荐(0)
摘要:
public class Person { public static void main(String[] args) { // TODO Auto-generated method stub //较差 Date start = new Date(); Long sum = 0L; for(int 阅读全文
posted @ 2017-11-08 13:32
mzxl1987
阅读(201)
评论(0)
推荐(0)
摘要:
import java.util.Calendar;import java.util.Date; public class Person { private final Date birthDate = new Date(); //重复创建对象 public boolean slow () { Ca 阅读全文
posted @ 2017-11-08 12:35
mzxl1987
阅读(158)
评论(0)
推荐(0)
摘要:
public class Elvis { //第一种静态成员是一个final域 public static final Elvis INSTANCE = new Elvis(); //第二种公有成员是一个静态工厂方法 private static final Elvis INSTANCE2 = ne 阅读全文
posted @ 2017-11-08 12:01
mzxl1987
阅读(162)
评论(0)
推荐(0)
摘要:
public class NutritionFacts { private final int serviceSize; private final int servings; private final int calories; private final int fat; public sta 阅读全文
posted @ 2017-11-08 11:34
mzxl1987
阅读(175)
评论(0)
推荐(0)
摘要:
public interface Service { } ////////////////////////////////////////////////////////////////////////////////////////////////// public interface Provi 阅读全文
posted @ 2017-11-08 11:19
mzxl1987
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号