SHARE
TWEET

Untitled

a guest Feb 15th, 2011 65 Never
  1. /**
  2.  *
  3.  * @author Binny
  4.  *
  5.  */
  6. public class Start {
  7.         public Start(int numberOfPlayers) {
  8.         List<Player> l = new List<Player>();
  9.          String[] playerNumber = {"Red", "Green", "Blue", "Yellow" ,"Orange", "Black", "Purple"};
  10.          for(int i = 0; i < numberOfPlayers; i++){
  11.                  Player playerNumber[i] = new Player();
  12.                  System.out.println(numberOfPlayers);
  13.                  System.out.println(playerNumber[i]);
  14.                  l.add(playerNumber[i]);
  15.          }
  16.  }
  17. }
RAW Paste Data
Top