⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumvote.java

📁 BBS论坛设计JSP+MYSQL
💻 JAVA
字号:
package com.bcxy.bbs.forum;

/**
 * Title: 
 * Description: 
 * Copyright: 
 * Company: www.liyunet.com
 * 
 * @author lishujiang
 * @version 1.0
 */

public class ForumVote {
	int voteID, announceID, voteType;

	String vote, voteNum, voteUser;

	public ForumVote() {

	}

	public void setVoteID(int voteID) {
		this.voteID = voteID;
	}

	public int getVoteID() {
		return voteID;
	}

	public void setAnnounceID(int announceID) {
		this.announceID = announceID;
	}

	public int getAnnounceID() {
		return this.announceID;
	}

	public void setVoteType(int voteType) {
		this.voteType = voteType;
	}

	public int getVoteType() {
		return this.voteType;
	}

	public void setVote(String vote) {
		this.vote = vote;
	}

	public String getVote() {
		return vote;
	}

	public void setVoteNum(String voteNum) {
		this.voteNum = voteNum;
	}

	public String getVoteNum() {
		return this.voteNum;
	}

	public void setVoteUser(String voteUser) {
		this.voteUser = voteUser;
	}

	public String getVoteUser() {
		return voteUser;
	}

	public String[] getVoteS() {
		String reg = "(\r|\n)";
		String[] tempString = vote.split(reg);
		return tempString;
	}

	public int[] getVoteNumS() {
		String[] tempNumS = voteNum.split("\\|");
		int[] tempIntS = new int[tempNumS.length];
		for (int i = 0; i < tempNumS.length; i++)
			tempIntS[i] = Integer.parseInt(tempNumS[i]);
		return tempIntS;
	}

	public boolean getUserSign(String userName) {
		String[] users = voteUser.split("\\|");
		for (int i = 0; i < users.length; i++) {
			if (userName.equals(users[i])) {
				return true;
			}
		}
		return false;

	}

}

⌨️ 快捷键说明

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