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

📄 mydate.java

📁 实现基本的书店管理
💻 JAVA
字号:
// FrontEnd Plus for JAD
// DeCompiled : MyDate.class

package DateBean;

import java.util.Calendar;

public class MyDate
{

    int theyear;
    int themonth;
    int theday;
    String thedate;

    public MyDate()
    {
        theyear = 0;
        themonth = 0;
        theday = 0;
        thedate = null;
    }

    public String getDate()
    {
        Calendar calendar = Calendar.getInstance();
        theyear = calendar.get(1);
        themonth = calendar.get(2) + 1;
        theday = calendar.get(5);
        thedate = (new StringBuilder()).append(theyear).append("\u5E74").append(themonth).append("\u6708").append(theday).append("\u65E5").toString();
        return thedate;
    }
}

⌨️ 快捷键说明

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