seasontester.java

来自「Java 程序设计教程(第五版)EXAMPLESchap06源码」· Java 代码 · 共 18 行

JAVA
18
字号
//********************************************************************//  SeasonTester.java       Author: Lewis/Loftus////  Demonstrates the use of a full enumerated type.//********************************************************************public class SeasonTester{   //-----------------------------------------------------------------   //  Iterates through the values of the Season enumerated type.   //-----------------------------------------------------------------   public static void main (String[] args)   {      for (Season time : Season.values())         System.out.println (time + "\t" + time.getSpan());   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?