📄 main.java
字号:
import java.util.*;
class Main {
static void printDefaultTimeZone() {
TimeZone tz = TimeZone.getDefault();
System.out.println(tz.getID() + " " + tz.getRawOffset());
}
public static void main(String[] args) {
// Print real default.
printDefaultTimeZone();
// Replace the default time zone (not a typical thing to do.)
TimeZone tz = new SimpleTimeZone(1234567, "FOO");
TimeZone.setDefault(tz);
// Print new default.
printDefaultTimeZone();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -