ace

player1

ace
Aug 4th, 2010
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import java.util.ArrayList;
  2. /**
  3. * Write a description of class Player here.
  4. *
  5. * @author (your name)
  6. * @version (a version number or a date)
  7. */
  8. public class Player
  9. {
  10. //
  11.  
  12. public ArrayList<Player> players;
  13.  
  14.  
  15. /**
  16. * Constructor for objects of class Player
  17. */
  18. public Player(Player player)
  19. {
  20. // initialise instance variables
  21.  
  22. players = new ArrayList<Player>();
  23. players.add(player);
  24. }
  25.  
  26. /**
  27. * An example of a method - replace this comment with your own
  28. *
  29. * @param y a sample parameter for a method
  30. * @return the sum of x and y
  31. */
  32.  
  33. }
Add Comment
Please, Sign In to add comment