userbook.java~2~

来自「本系统图书馆管理系统」· JAVA~2~ 代码 · 共 85 行

JAVA~2~
85
字号
package baseclass;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
///////////////////////////////////////////////////////////////
//the relation between user and book which is borrow or order
///////////////////////////////////////////////////////////////
import java.util.Date;
public class UserBook {

        String userID;
        String bookIndex;
        Date startDate;
        Date endDate;
        String userPWD;

        //////////////////////////////////////
        //set the value of UserBook
        //////////////////////////////////////

        public void setUserID(String id)
        {
                userID=id;
        }

        public void setBookIndex(String index)
        {
                bookIndex=index;
        }

        public void setStartDate(Date date)
        {
                startDate=date;
        }

        public void setEndDate(Date date)
        {
                endDate=date;
        }

        public void setUserPWD(String pwd)
        {
            userPWD=pwd;
        }

        //////////////////////////////////////
        //get the value of UserBook
        //////////////////////////////////////

        public String getUserID( )
        {
                return userID;
        }

        public String getBookIndex( )
        {
                return bookIndex;
        }

        public Date getStartDate( )
        {
                return startDate;
        }

        public Date getEndDate( )
        {
                return endDate;
        }

        public String getUserPWD()
        {
            return userPWD;
        }
}

⌨️ 快捷键说明

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