title: returning ArrayIndexOutOfBoundsException error for unknown reason
body: <p>I am trying to create a basic bubble sort program but at some point the array tries to reference the 11th position despite the array being 10 long and i am not sure when it occurs</p>
  
  <pre><code>int Last, i = 0, Temp;
      int[] Numbers = new int[10];
      String[] NumbersString = new String[10];
      String initialString = TextBox.getText();
      NumbersString = initialString.split(" ");
      while(i&lt;10){
          Numbers[i] = Integer.parseInt(NumbersString[i]);
          i = i + 1;
      }
      Last = 9;
      Boolean Swapped = true;
      while(Swapped = true) {
          Swapped = false;
          i = 0;
          while(i &lt; Last) {
                  if(Numbers[i] &gt; Numbers[i+1]){
                  Temp = Numbers[i];
                  Numbers[i] = Numbers[i+1];
                  Numbers[i+1] = Temp;
                  Swapped = true;
                  }
              i = i + 1;
          }
          Last = Last-1;
      }
      String Result = Numbers[0] + " " + Numbers[1] + " " + Numbers[2] + " " + Numbers[3] + " " + Numbers[4] + " " + Numbers[5] + " " + Numbers[6] + " " + Numbers[7] + " " + Numbers[8] + " " + Numbers[9];
      ResultText.setText(Result);
  </code></pre>