gamewonexception.java
来自「jGAp 遗传算法 提不错的一款软件 最新的更新」· Java 代码 · 共 26 行
JAVA
26 行
/*
* This file is part of JGAP.
*
* JGAP offers a dual license model containing the LGPL as well as the MPL.
*
* For licensing information please see the file license.txt included with JGAP
* or have a look at the top of class org.jgap.Chromosome which representatively
* includes the JGAP license policy applicable for any file delivered with JGAP.
*/
package examples.gp.tictactoe;
public class GameWonException
extends RuntimeException {
private int m_color;
public GameWonException(int a_color, String a_message) {
super(a_message);
m_color = a_color;
}
public int getColor() {
return m_color;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?