title: Find smallest integer value in array list in Java without Arrays.sort
body: <p>How can I find the smallest value in a int array without changing the array order?</p>
  
  <p>code snippet:</p>
  
  <pre><code>    int[] tenIntArray = new int [10];
      int i, userIn;
  
      Scanner KyBdIn = new Scanner(System.in);
      System.out.println("Please enter 10 integer numbers ");
  
      for(i = 0; i &lt; tenIntArray.length; i++){
          System.out.println("Please enter integer " + i);
          userIn = KyBdIn.nextInt();
          tenIntArray[i] = userIn;
      }
  </code></pre>
  
  <p>I am not sure how I can find the smallest array value in the tenIntArray and display the position</p>
  
  <p>For example the array holds - <code>[50, 8, 2, 3, 1, 9, 8, 7 ,54, 10]</code></p>
  
  <p>The output should say "<code>The smallest value is 1 at position 5 in array</code>"</p>