日期:2014-05-20 浏览次数:20662 次
public class Bigger { public static void main(String args[]){ int a = -2147483648; int b = 2147483647; String[] strArray = {"a>=b", "a<b"}; int i = (int)((long)a-(long)b >>> 63); System.out.println(strArray[i]); } } 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/justinavril/archive/2009/04/29/4138182.aspx