Original Post
Hey guys, I am new to programming and I was wondering if someone could give me a hand with a small game that I am developing in Java. Here is my code so far...... Class Session This class maintains information about the session between two players. public class Session { private int sessionId; private String playerName; private Date startTime private String State; } What I would like to do,is define 3 different states for the State variable.I would like to define a WAIT_REPLY,ACCEPT_REJECT and PLAY states.The only problem is that I am not sure how to implement this in Java code.