title: Is there anyway I could retrieve the data of all the films that have the same name but different scores?
body: <p>When I run the program and choose to search by score, the same title is printed for the same score instead of printing the other titles</p>
  <pre><code>  private void searchReviewScore() throws IOException {
      int review = getNumberInput(_scanner, 1, 5, &quot;Enter minimum rating (1 - 5): &quot;);
  
      // Get the list of scores from the file.
      Path path = Paths.get(&quot;scores.txt&quot;);
      List&lt;String&gt; allScores = Files.readAllLines(path);
  
      for (String movieScore : allScores) 
      {
          int movieScoreInt = Integer.parseInt(movieScore);
          if (review &lt;= movieScoreInt) { 
              int i = allScores.indexOf(movieScore);
              presentMovieAndScore(i);
          }
      }
      //TODO: Add call to search movie database based on input
  
      //TODO: Present results to user
  
  }
  </code></pre>
  <p>Here is my Print method.</p>
  <pre><code>/**
   * @param i
   * @throws IOException
   */
  private void presentMovieAndScore(int i) throws IOException {
      Path movies = Paths.get(&quot;movies.txt&quot;);
      List&lt;String&gt; allMovies = Files.readAllLines(movies);
  
      Path path = Paths.get(&quot;scores.txt&quot;);
      List&lt;String&gt; allScores = Files.readAllLines(path);
  
      System.out.println(&quot;Titel: &quot; + allMovies.get(i) + &quot; rating: &quot; + allScores.get(i));
  }
  </code></pre>
  <p>Here is the content of movie.txt <code>bones matrix deceptions suits bones Gladiator</code></p>
  <p>the score.txt contains: <code>1 2 5 3 4 1</code></p>