// 在主方法中调用compare()方法 public static void main(String[] args) { compare(Constants2.valueOf("Constants_B")); }