摘要:
1、模拟上车案例:有一辆车,有100个座位,有前中后三个门每个门都可以随机上人,上人的个数不确定。 package com.xxx; import java.util.Random; public class CarRunnable implements Runnable { private sta 阅读全文
摘要:
1、请使用Map集合存储自定义数据类型Car做键,对应的价格做值。并使用keySet和entrySet两种方式遍历Map集合。 package com.xxx; public class Car { private String name; private int price; public Car 阅读全文