java代码075

虾米大王
• 阅读 223

code075.java


package pack02;

//Book ͼ����
public class code075
{
    private int id; //ͼ����
    private String name;//ͼ������
    private double price;//�۸�
    private int bookCount;//����
    private String author;//����

    public int getId()
    {
        return this.id;
    }

    public String getName()
    {
        return this.name;
    }

    public double getPrice()
    {
        return this.price;
    }

    public int getBookCount()
    {
        return this.bookCount;
    }

    public String getAuthor()
    {
        return this.author;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }

    public void setBookCount(int bookCount)
    {
        this.bookCount = bookCount;
    }

    public void setAuthor(String author)
    {
        this.author = author;
    }

    /*
create table tb_books (
    id int auto_increment not null primary key comment 'ͼ����',
    name varchar(45) not null comment 'ͼ������',
    price double not null comment '�۸�',
    bookCount int not null comment '����',
    author varchar(45) not null comment '����'
)
     */

}
点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Jacquelyn38 Jacquelyn38
2年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
虾米大王 虾米大王
1年前
java代码078
code078.javapackagepack02;//ͼ����,publicclasscode078privateintid;//ͼ����privateStringname;//ͼ������privatedoubleprice;//�۸�privateintbookCount;//����privateStrin
虾米大王 虾米大王
1年前
java代码042
code042.javapackagepack01;publicclasscode042privateStringname;privatedoubleprice;privateintcount;privateStringfactory;publicStringgetName()returnthis.name;
虾米大王 虾米大王
1年前
java代码040
code040.javapackagepack01;publicclasscode040privateStringname"ľ����";//��Ʒ����privatedoubleprice1880.5;//��Ʒ�۸�privateintcount100;//����privateStringfactor
虾米大王 虾米大王
1年前
java代码086
code086.javapackagepack02;//Book��publicclasscode086privateintid;privateStringname;privatedoubleprice;privateintbookCount;privateStringauthor;publicintgetId(
Wesley13 Wesley13
2年前
Java日期时间API系列35
  通过Java日期时间API系列1Jdk7及以前的日期时间类(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fxkzhangsanx%2Fp%2F12032719.html)中得知,Java8以前除了java.sql.Timestamp扩充
Wesley13 Wesley13
2年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
京东云开发者 京东云开发者
5个月前
Java服务总在半夜挂,背后的真相竟然是... | 京东云技术团队
最近有用户反馈测试环境Java服务总在凌晨00:00左右挂掉,用户反馈Java服务没有定时任务,也没有流量突增的情况,Jvm配置也合理,莫名其妙就挂了
虾米大王
虾米大王
Lv1
男 · java工程师
梦里相思,故国王孙路。
文章
100
粉丝
1
获赞
100