
player1
By:
ace on
Aug 4th, 2010 | syntax:
None | size: 0.65 KB | hits: 11 | expires: Never
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
*/
}