标签:test color span isp element enum while mes rgs
import java.util.Vector; import java.util.Enumeration; public class EnumerationTester { public static void main(String args[]) { Enumeration<String> days; Vector<String> dayNames = new Vector<String>(); dayNames.add("Sunday"); dayNames.add("Monday"); dayNames.add("Tuesday"); dayNames.add("Wednesday"); dayNames.add("Thursday"); dayNames.add("Friday"); dayNames.add("Saturday"); days = dayNames.elements(); while (days.hasMoreElements()){ System.out.println(days.nextElement()); } } }
输出
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
标签:test color span isp element enum while mes rgs
原文地址:https://www.cnblogs.com/sea-stream/p/11704712.html