所以我已经创建了所有这些哈希图,我想知道是否有办法一次初始化所有这些(因为“从不重复自己”)
Map<Integer, String> inter = new HashMap<Integer, String>();
Map<Integer, String> join = new HashMap<Integer, String>();
Map<Integer, String> diff = new HashMap<Integer, String>();
Map<Integer, String> diff2 = new HashMap<Integer, String>();
还有这样的专家:( sc1和sc2是扫描仪)
sc1.nextLine();
sc2.nextLine();