title: Compare big integers in array
body: <p>How to find 3 the biggest <code>BigInteger</code> objects in array? This is my code for now.</p>
  
  <pre><code>package masivi;
  
  import java.math.BigInteger;
  import java.util.Scanner;
  
  public class largest3Numbers {
  
      public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int n = scan.nextInt();
          BigInteger[] numbers = new BigInteger[n];
          BigInteger tempbiggest1 = new BigInteger("0");
          BigInteger biggest1 = new BigInteger("0");
          BigInteger tempbiggest2 = new BigInteger("0");
          BigInteger biggest2 = new BigInteger("0");
          BigInteger tempbiggest3 = new BigInteger("0");
          BigInteger biggest3 = new BigInteger("0");
  
          for (int i = 0; i &lt; numbers.length; i++) {
              numbers[i] = scan.nextBigInteger();
              if (numbers[i] &gt; tempbiggest1) {
  
              }
          }
      }
  }
  </code></pre>