title: How to I print a string index of an array?
body: <p>I'm very new and naive to Java. How would I print the name of a player? Let's say I want to print out "The last player is Peggy Lou"?</p>
  
  <pre><code>void createPlayers() {
          System.out.print("What is your name?  ");
          String humansName = scanner.next();
          players[0] = new Human(humansName);
          players[1] = new Player("Bill");
          players[2] = new Player("Hank");
          players[3] = new Player("Peggy Lou");
  
      }
  </code></pre>