Integer color = null;
int white = 255 * 255 * 255;
color = false ? white : color;
你猜结果会是怎样呢?
运行一下看看吧,结果是否让人崩溃?
Integer color1 = 1000;
int color2 = 1000;
if(color1 == color2) {
System.out.printeln("你没有疯。");
}
if(color2 == color1) {
System.out.println("你很正常。");
}
上面代码结果又如何呢?
你真的能相信Java吗?无冕之王真的比草根语言严谨吗?