Hi:I've been trying to create a class that would keep track of thenumber of players. My thought was to create a game on an applet andthen whenever an instance of the applet was loaded by a client a classnamed NumberOfPlayers would keep track of the number of players. Ithought all I would need to do was declare a static variable likerivate static int Players = 0;but this doesn't seem to work. The entire class looks like thisublic class NumberOfPlayers{private static int Players = 0;public int getNumberOfPlayersAsInt(){return Players;}public String getNumberOfPlayersAsString(){return String.valueOf(Players);}public void addNewPlayer(int newPlayer){Players = Players + newPlayer;}public void removePayer(int retiredPlayer){Players = Players - retiredPlayer;}}When an instance of the game applet opens I make a call to theconstructor like:NumberOfPlayers nPlayers = new NumberOfPlayers(); //declarationpublic game(){nPlayers.addNewPlayer(1);}//constructorWhen I open two instances of the game applet the return value ofnPlayers.getNumberOfPlayersAsString() is always one [1] not two [2] asexpected.How can I change my approach so as to make this work?Thanks,Alan