title: I have two error codes in Java I am not familiar with
body: <p>I am a beginner at Java and I am watching instructional videos as I practice.</p>
  
  <p>The code in the program however doesn't work on Eclipse IDE and pops 2 errors, I am trying to figure out why.</p>
  
  <pre class="lang-java prettyprint-override"><code>import java.util.Arrays;
  
  public class Arrays {
      public static void main(String[] args) {
          int[] numbers = new int[5];
  
          numbers[0] = 31;
          numbers[1] = 88;
          numbers[2] = 11;
          numbers[3] = 73;
          numbers[4] = 45;
  
          int[] numbers2 = {99, 1, 2, 3, 4};
          Arrays.sort(numbers);
          System.out.println(Arrays.toString(numbers));
      }
  }
  </code></pre>
  
  <p>My last two lines show the following:</p>
  
  <ol>
  <li>The method <code>sort(int[])</code> is undefined for the type <code>Arrays</code></li>
  <li>The method <code>toString()</code> in the type <code>Object</code> is not applicable for the arguments (<code>int[]</code>)</li>
  </ol>
  
  <p>Am I misunderstanding something simple?</p>