来自「通过实例可以更好的了解java」· 代码 · 共 14 行
TXT
14 行
2-例子
public class Datatype
{ public static void main(String args[])
{ byte a=120;short b=250;int c=2200;long d=500000;
char e='花';float f=11111.111f;double g=11111111.111;
boolean 男=true;boolean 女=false;
System.out.println("a= "+a); System.out.println("b= "+b);
System.out.println("c= "+c); System.out.println("d= "+d);
System.out.println("e= "+e); System.out.println("f= "+f);
System.out.println("g= "+g); System.out.println("男= "+男);
System.out.println("女= "+女);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?