title: Make Multiple Strings with For Loop
body: <p>So I have a text file reader that reads in each string as they come in.</p>
  
  <pre><code>String R1Name = fileScanner.nextLine();
  String R1URL = fileScanner.nextLine();
  String R2 = fileScanner.nextLine();
  String R2Name = fileScanner.nextLine();
  String R2URL = fileScanner.nextLine();
  String R3 = fileScanner.nextLine();
  String R3Name = fileScanner.nextLine();
  String R3URL = fileScanner.nextLine();
  </code></pre>
  
  <p>Etc.</p>
  
  <p>How can I have it so it creates a simple for loop with number 1-7 that does the same thing with less code?</p>
  
  <pre><code>for(int i=0; i&lt;8; i++){
  
              String R(i) = fileScanner.nextLine();
              String R(i)URL=fileScanner.nextLine();
      }
  </code></pre>
  
  <p>Trying to get something like this but with no luck</p>