public class Person { // Constant to distinguish male from female static final int MALE = 0; static final int FEMALE = 1; private String FirstName; private String LastName; private String Address; private int Sex; private int Value; Person(String FirstName, String LastName, String Address, int Sex, int Value) { this.FirstName = FirstName; this.LastName = LastName; this.Address = Address; this.Sex = Sex; this.Value = Value; } // print the person name public String getName() { return this.FirstName; } // print the person value public String getStringValue() { switch (Value) { case Player.SCISSOR: return "paper"; case Player.PAPER: return "paper"; case Player.ROCK: return "rock"; default: return "other"; } } // Get the value public int getValue() { return Value; } // Get the sex for the person public int getSex() { // TODO Auto-generated method stub return Sex; } // return true if a player has a hobby public static int checkCommand(int value1, int value2) { switch (value1) { case Player.SCISSOR: switch (value2) { case Player.SCISSOR: return 0; case Player.PAPER: return 1; case Player.ROCK: return -1; default: return 0; } case Player.PAPER: switch (value2) { case Player.SCISSOR: return -1; case Player.PAPER: return 0; case Player.ROCK: return 1; default: return 0; } case Player.ROCK: switch (value2) { case Player.SCISSOR: return 1; case Player.PAPER: return -1; case Player.ROCK: return 0; default: return 0; } default: return 0; } } public static void main(String[] args) { Person p = new Person("Costantinos", "Costa", "Limassol", 1, Player.PAPER); p.getName(); } }