摘要:
1.Map 有泛型的必要性 防止运行时报 incompatible types: Object cannot be converted to int Map 中未使用泛型,Map 进行 get 操作赋值给 int[ ] 的时候报如下错误 报错:incompatible types: Object c 阅读全文
摘要:
int x=-2147483648; x=-x; System.out.print(x); long 放的位置不一样就会出现不同的结果 @Test public void test4() { int a = -2147483648; long x=-(long)a; long x1=(long)-a 阅读全文