?? simpleformat.java
字號:
package chapter13;
public class SimpleFormat {
public static void main(String args[]){
int x=2008;
System.out.println("Row 1: "+x+"");
System.out.println("Row 1.1:"+x);
System.out.format("Row 2: %d\n",x);
System.out.printf("Row 3: %d\n",x);
/*
* 類似C語言中的格式化輸出
* 而且,format()與printf()類似
*/
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -