title: How to sort an array without losing reference to the index thingy?
body: <p>Okay. I'm effectively a -total- beginner to coding (taken some classes but a slow/dense learner) and the answer is probably ridiculously simple. I have one string array that has names and another that has the scores associated. </p>
  
  <pre><code>names[0] = blinky   
  scores[0] = 42 (blinky's score)   
  names[1] = inky   
  scores[1] = 37 (inky's score)  
  </code></pre>
  
  <p>in the for loop i calls the number (index number? I'm horrible with terms. The only thing that ever seems to make sense is the code itself). Anyway, I want to be able to preserve i.</p>
  
  <p>I want to make a list that puts the names with the scores in order from highest to lowest. </p>
  
  <p>I don't know if using util.Arrays or anything that will automatically sort will help. I believe I'll have to manually have to sort them in order to keep the names and numbers aligned</p>
  
  <pre><code>//Example  
  String[] names = {"Blinky","Inky","Pinky","Clyde"};  
  int[] scores = {42,37,67,50};  
  
  for (int = 0; i &lt; scores.length; i++){  
  System.out.println("what do?")  
  }
  </code></pre>
  
  <p>How would I go about making a list that puts the names in order? Simpler the better.
  I'd be very appreciative of help.</p>
  
  <p>Edit: I'd like to thank all of you for your help! :)</p>