problembean.java

来自「struts框架的jsf组件的核心实用例子集合」· Java 代码 · 共 25 行

JAVA
25
字号
package com.corejsf;import java.util.ArrayList;public class ProblemBean {   private ArrayList sequence;    private int solution;      public ProblemBean() {}   public ProblemBean(int[] values, int solution) {      sequence = new ArrayList();      for (int i = 0; i < values.length; i++)         sequence.add(new Integer(values[i]));      this.solution = solution;   }   // PROPERTY: sequence   public ArrayList getSequence() { return sequence; }   public void setSequence(ArrayList newValue) { sequence = newValue; }   // PROPERTY: solution   public int getSolution() { return solution; }   public void setSolution(int newValue) { solution = newValue; }}

⌨️ 快捷键说明

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