?? assign.java
字號:
////基本數據類型變量的定義、賦值與輸出
public class Assign {
public static void main (String args []) {
int x, y;
float z = 3.414f;
double w = 3.1415;
boolean truth = true;
char c;
String str;
String str1 = "bye";
c = 'A';
str = "Hi out there!";
x = 6;
y = 1000;
//變量的輸出
System.out.println("integer:"+x+','+y);
System.out.println("char:"+c);
System.out.println("float:"+z+','+w);
System.out.println("boolean:"+true);
System.out.println("string:"+str+','+str1);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -