set.java

来自「Genetic Programming。GP算法在方程逼近求解上的应用。」· Java 代码 · 共 24 行

JAVA
24
字号
public class Set  {             private Class[] choices;        public int[] selections;        public Set(Class[] choices, int[] selections) {                this.choices = choices;                this.selections = selections;        }        public Class getSelectedItem(int number) {                if (choices == null || selections == null) {                        return null;                } else {                        return choices[selections[number]];                }        }}

⌨️ 快捷键说明

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