2022年3月18日

集合作业章节下半部

摘要: Map hashMap = new HashMap(); hashMap.put("jack",650); hashMap.put("tom",1200); hashMap.put("smith",2900); //System.out.println(hashMap); //(1)将jack的工资 阅读全文

posted @ 2022-03-18 22:17 我要当程序源 阅读(12) 评论(0) 推荐(0) 编辑

集合作业章节 上半部

摘要: public class HomeWork01 { public static void main(String[] args) { /* (1)封装一个新闻类, 包含标题和内容属性 ,提供get.set方法, 重写toString方法, 打印 对象时只打印标题 (2)只提供一个带参数的构造器, 实 阅读全文

posted @ 2022-03-18 22:16 我要当程序源 阅读(41) 评论(0) 推荐(0) 编辑

导航