tjnewsinfo.java~5~

来自「c++通信编程学习1」· JAVA~5~ 代码 · 共 43 行

JAVA~5~
43
字号
package com.j2ee.func.news;

public class TjnewsInfo {
    public TjnewsInfo() {

    }
        private int id;
        private int newsid;//新闻id
        private String type;
        private String newstitle;//
        private String newsdate;
        public void setId(int id){
        this.id=id;
        }
        public void setNewsid(int newsid){
        this.newsid=newsid;
        }
        public void setNewstitle(String newstitle){
            this.newstitle=newstitle;
        }
        public void setNewsdate(String newsdate){
            this.newsdate=newsdate;
        }
        public void setType(String type){
            this.type=type;
        }
        public int getId(){
            return this.id;
        }
        public int getNewsid(){
            return this.newsid;
        }
        public String getNewstitle(){
            return this.newstitle;
        }
        public String getNewsdate(){
            return this.newsdate;
        }
        public String getType(){
            return this.type;
        }
}

⌨️ 快捷键说明

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