Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

player1

By: ace on Aug 4th, 2010  |  syntax: None  |  size: 0.65 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }