ace

player2

ace
Aug 4th, 2010
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 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. public String playerName;
  14. Player player;
  15.  
  16.  
  17. /**
  18. * Constructor for objects of class Player
  19. */
  20. public Player (String playerName)
  21. {
  22. // initialise instance variables
  23.  
  24. //players = new ArrayList<Player>();
  25. //players.add(player);
  26. player = new Player();
  27. this.playerName = playerName;
  28. }
  29.  
  30. /**
  31. * An example of a method - replace this comment with your own
  32. *
  33. * @param y a sample parameter for a method
  34. * @return the sum of x and y
  35. */
  36.  
  37. }
Add Comment
Please, Sign In to add comment