摘要: int的负数n向上转型为long时,应该写成-(long)n,而不是(long)-n。 举例:int n = Integer.MIN_VALUE;//-2147483648System.out.println(-(long)n);//2147483648System.out.pri... 阅读全文
posted @ 2017-04-27 14:32 StevenLuke 阅读(125) 评论(0) 推荐(0) 编辑