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

📄 addbean.java

📁 本程序是用java基于jsf架构编写的测试jsf程序样例
💻 JAVA
字号:
package com.jsf;

public class AddBean {

	private double first = 0.0 ;
	
	private double second = 0.0;
	
	private double result = 0.0 ;

	/**
	 * @return the first
	 */
	public double getFirst() {
		return first;
	}

	/**
	 * @param first the first to set
	 */
	public void setFirst(double first) {
		this.first = first;
	}

	/**
	 * @return the result
	 */
	public double getResult() {
		return result;
	}

	/**
	 * @param result the result to set
	 */
	public void setResult(double result) {
		this.result = result;
	}

	/**
	 * @return the second
	 */
	public double getSecond() {
		return second;
	}

	/**
	 * @param second the second to set
	 */
	public void setSecond(double second) {
		this.second = second;
	}
	
	public String add()
	{
		result  = first + second ;
		return "success" ;
	}
	
}

⌨️ 快捷键说明

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