title: Java BigInteger Comparison
body: <p>Can you please help me to understand what I am doing wrong in this code:</p>
  
  <pre><code>package javaapplication19;
  
  public class JavaApplication19 {
  
      public static void main(String[] args) {
          BigInteger bi1, bi2, bi3, bi4;
          bi1 = new BigInteger(123456789);
          bi2 = new BigInteger(0);
          bi3 = new BigInteger(123456789);
          bi4 = new BigInteger(0);
  
          for (bi2 = BigInteger.valueOf(0);
                  bi2.compareTo(bi3) &gt; 0;
                  bi2 = bi2.add(1)) {
              if(bi4.compareTo(bi1) == 0) {
                  System.out.println("bulduk bulduk" + bi4);
              }
              else
              {
                  bi4 = bi4.add(1);
              } 
          }         
      }
  }
  </code></pre>
  
  <p>This is the output:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.UnsupportedOperationException:
    Not supported yet.    at
    javaapplication19.BigInteger.(BigInteger.java:19)   at
    javaapplication19.JavaApplication19.main(JavaApplication19.java:19)
    C:\Users\xxxxx\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53:
    Java returned: 1 BUILD FAILED (total time: 0 seconds)</p>
  </blockquote>
  
  <p>Thank you for your help</p>