?? getsystemtime.java
字號:
package com.wy.tool;
import java.util.Calendar;
public class GetSystemTime {
private Calendar now = Calendar.getInstance();
private int year = now.get(Calendar.YEAR);
private int month = now.get(Calendar.MONTH) + 1;
private int day = now.get(Calendar.DAY_OF_MONTH);
public String getToday() {
String today = this.year + "-" + this.month + "-" + this.day;
return today;
}
public String getYearMonth() {
String today = this.year + "-" + this.month ;
return today;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -