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

📄 product.java

📁 想学习EJB的同学
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package ejb3.day2;import java.io.Serializable;/** * * @author user */public class Product implements Serializable{    private int id;    private String name;    private float price;    public Product(){}    public Product(int id, String name, float price){        this.id = id;        this.name = name;        this.price = price;    }        public int getId() {        return id;    }    public void setId(int id) {        this.id = id;    }    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public float getPrice() {        return price;    }    public void setPrice(float price) {        this.price = price;    }        @Override    public String toString(){        return "Product: id=" + id + ", name=" + name + ",price=" + price;    }    }

⌨️ 快捷键说明

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