输出周一至周日

时间:2022-04-05 12:56:52
【文件属性】:

文件名称:输出周一至周日

文件大小:512B

文件格式:JAVA

更新时间:2022-04-05 12:56:52

java

package lesson05; import java.util.Collection; import java.util.HashMap; public class Topic_5_1 { public static void main(String[] args) { HashMap day = new HashMap(); day.put("1", "Monday"); day.put("2", "Tuesday"); day.put("3", "Wednesday"); day.put("4", "Thursday"); day.put("5", "Friday"); day.put("6", "Saturday"); day.put("7", "Sunday"); Collection<?> days = day.entrySet(); System.out.println(day); System.out.println(days); } }


网友评论