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

player2

By: ace on Aug 4th, 2010  |  syntax: None  |  size: 0.78 KB  |  hits: 13  |  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.     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. }