这代码哪里有问题,要如何进行修改

这代码哪里有问题,要如何修改
public static void main(String[] args){
Map<Integer.Integer>mapA = new HashMap<>();
Map<Integer.Integer>mapB = new HashMap<>();
for(int i = 0;i <150; i++){
mapA.put(i,i);
mapB.put(i,i);
}
for(int i = 0 ; i <150; i++){
System.out.println(i+""+(mapA.get(1) == mapB.ger(i)));
}
}

代码不能运行,还是运行结果不对?
不能运行,要贴出报错信息
结果不对,你的预期是什么,实际是什么,贴出来

Map<Integer.Integer> 两个Integer之间是逗号
System.out.println(i+""+(mapA.get(1) == mapB.ger(i))); 这一行,后面一个ger(i)不对,应该是get(i);第一个get()参数是 “i”不是1;当然是1也能运行。单结果不是你想要的

直接上代码
首先代码中有比较明显的书写错误

public static void main(String[] args){
        Map<Integer,Integer>mapA = new HashMap<Integer,Integer>();
        Map<Integer,Integer> mapB = new HashMap<Integer,Integer>();
        for(int i = 0;i <150; i++){
            mapA.put(i,i);
            mapB.put(i,i);
        }
        for(int i = 0 ; i <150; i++){
            System.out.println(i+"==="+(mapA.get(1) == mapB.get(i)));
        }
    }

有帮助麻烦点个采纳【本回答右上角】,谢谢~~

Map 集合存的键值对 你的 Map 集合的泛型 写的什么 两个Integer之间应该是 ,逗号 而不是 点

Map集合是键值对 你的两个Integer之间 是点. 换成,逗号 再试试