IntTest.java



/** int型のデータを取り扱う */
public class IntTest {

  /** 処理の開始 */
    public static void main( String[] argv ) {

        int n=2000000000;
        while( true ) {
           int m = n+1;
           if( m < n ) { 
               System.out.println( "int value = " + n );
               System.out.println( "int value = " + m );
               break;
           }
           n = m;
        }
    }
}