Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- /**
- * Write a description of class Player here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Player
- {
- //
- public ArrayList<Player> players;
- /**
- * Constructor for objects of class Player
- */
- public Player(Player player)
- {
- // initialise instance variables
- players = new ArrayList<Player>();
- players.add(player);
- }
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
- }
Add Comment
Please, Sign In to add comment