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;
- public String playerName;
- Player player;
- /**
- * Constructor for objects of class Player
- */
- public Player (String playerName)
- {
- // initialise instance variables
- //players = new ArrayList<Player>();
- //players.add(player);
- player = new Player();
- this.playerName = playerName;
- }
- /**
- * 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