expensereportrecorditem.java

来自「jsf在线考试系统的实例」· Java 代码 · 共 43 行

JAVA
43
字号
package com.jlobo.web.views;

public class ExpenseReportRecordItem {
	private String day;
	private double meals;
	private double hotels;
	private double transport;

	public ExpenseReportRecordItem(String day, double meals, double hotels, double transport) {
		this.day = day;
		this.meals = meals;
		this.hotels = hotels;
		this.transport = transport;
	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	public double getHotels() {
		return hotels;
	}
	public void setHotels(double hotels) {
		this.hotels = hotels;
	}
	public double getMeals() {
		return meals;
	}
	public void setMeals(double meals) {
		this.meals = meals;
	}
	public double getTransport() {
		return transport;
	}
	public void setTransport(double transport) {
		this.transport = transport;
	}
	public double getTotal() {
		return meals+hotels+transport;
	}
}

⌨️ 快捷键说明

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