Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 15th, 2011  |  syntax: None  |  size: 0.41 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }