constants.java

来自「sun官方网站Swing的指南(English)」· Java 代码 · 共 32 行

JAVA
32
字号
package bingo.shared;public interface Constants {	// various constants for the game    public static final long ONE_SECOND = 1000;    public static final long FIVE_SECONDS = ONE_SECOND * 5;    public static final long TWENTY_SECONDS = ONE_SECOND * 20;    public static final long ONE_MINUTE = ONE_SECOND * 60;    public static final long FIVE_MINUTES = ONE_MINUTE * 5;    public static final int MAX_WOLF_CRIES = 3;	// this is the port number to which all information	// is sent. this is an arbitrarily chosen number	// based on my kid's birthday (5/25/96)    public static final int portNumber = 52596;	// when a message is sent to a multicast socket, it's	// sent to a particular group on that socket.	// a group is identified by an InetAddress which can be	// specified by a string of the form %d.%d.%d.%d	//	// the bingo game sends information to three groups.	// these inetaddresses are arbitrarily chosen based on nothing    public static final String BallListeningGroup = "230.0.0.1";    public static final String GameListeningGroup = "230.0.0.2";    public static final String PlayerListeningGroup = "230.0.0.3";}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?