cpuinfo.java

来自「java编写的电子商务网站源码,做的一个电脑直销网站,后台数据库使用的是MS S」· Java 代码 · 共 39 行

JAVA
39
字号
package beans;
import java.io.UnsupportedEncodingException;

public class CpuInfo {
	private String submit = null;
	private static int begin = 1;
	private int count = 0;

	public String getSubmit() {
		return this.submit;
	}
	public void setSubmit(String submit) throws UnsupportedEncodingException {
		submit = new String(submit.getBytes("ISO-8859-1"), "GB2312");
		this.submit = submit;
		if (submit.equals("上一页")) {
			if (begin > 7)
				begin -= 7;
		}
		else if (submit.equals("下一页")) {
			if (begin + 7 <= count) {
				begin += 7;
			}
		}
	}
	public int getBegin() {
		return this.begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}

	public int getCount() {
		return this.count;
	}
	public void setCount(int count) {
		this.count = count;
	}
}

⌨️ 快捷键说明

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