日期:2014-05-20  浏览次数:20679 次

public final static day
public final static Day
  MONDAY = new Day(1, "Monday"),
  TUESDAY = new Day(2, "Tuesday"),
  WEDNESDAY = new Day(3, "Wednesday"),
  THURSDAY = new Day(4, "Thursday"),
  FRIDAY = new Day(5, "Friday"),
  SATURDAY = new Day(6, "Saturday"),
  SUNDAY = new Day(7, "Sunday");
  public final static Day[] day = {
  MONDAY, TUESDAY, WEDNESDAY, THURSDAY,
  FRIDAY, SATURDAY, SUNDAY
  };
为什么?

------解决方案--------------------
static final 就是一个常量了. 当常量对待..