title: Index of element in one array to be equal to the index in other array ANDROID
body: <p>Well, I am stuck on this problem, basically what I have is two arrays, for example </p>
  
  <pre><code>String[] cars = {"Bmw","audi","merc");
  String[] models = {"x5","rs6","s63");
  </code></pre>
  
  <p>I need method, line of code or anything that will assign car to the model, also I should mention that car array is listed in <code>ListView</code>, so I would like to get toast,let's say user taps on BMW and toast pops up "x5". I know how to make toast, and <code>onItemClick</code> method, I am just stuck on that how to get car array index to be equal to the index of model array..</p>
  
  <p>Arrays are equal in length.</p>
  
  <p>I know that this is peace of cake for someone but I am stuck on it badly, whatever I try I get some error(crush)! :(</p>