public class a
{
public static void main( String a[] )
{
dump( Integer.MAX_VALUE );
dump( 0 );
dump( Integer.MIN_VALUE );
}
static void dump( int what )
{
System.out.println( what + " " + Integer.toBinaryString( what ) );
}
}
C:\source\java\ebanx\rtl>java a
2147483647 1111111111111111111111111111111
0 0
-2147483648 10000000000000000000000000000000