testvar2.java
来自「北京尚学堂J2SE所有的源代码!!北京尚学堂J2SE所有的源代码!!」· Java 代码 · 共 18 行
JAVA
18 行
public class TestVar2 {
public static void main(String[] args) {
boolean b = true;
int x, y = 9;
double d = 3.1415;
char c1, c2;
c1 = '\u534e';
c2 = 'c';
x = 12;
System.out.println("b=" + b);
System.out.println
("x=" + x + ",y=" + y);
System.out.println("d=" + d);
System.out.println("c1=" + c1);
System.out.println("c2=" + c2);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?