java基本类型

时间:2021-08-03 15:25:36
【文件属性】:

文件名称:java基本类型

文件大小:6KB

文件格式:RAR

更新时间:2021-08-03 15:25:36

java基本类型

package day0101; public class Test5 { public static void main(String[] args) { System.out.println(3/2); System.out.println(3d/2); System.out.println("------------------------"); System.out.println("s"+"b"); System.out.println('s'+'b');//int+int System.out.println('s'+"b"); System.out.println("------------------------"); System.out.println(Integer.MAX_VALUE+1); System.out.println(300000000*60*60*24*365); System.out.println(300000000L*60*60*24*365); System.out.println("------------------------"); System.out.println(2-1.9); System.out.println(2-1.8); System.out.println(2-1.7); System.out.println(2-1.6); System.out.println(2-1.5); System.out.println(4.35*100); System.out.println(4.36*100); System.out.println(4.37*100); System.out.println(4.38*100); System.out.println(4.39*100); System.out.println("------------------------"); System.out.println(3.14/0); System.out.println(Double.MAX_VALUE*2); System.out.println(Math.sqrt(-4)); } }


【文件预览】:
day0101_基本类型
----bin()
--------day0101()
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----src()
--------day0101()
----.project(396B)
----.classpath(301B)

网友评论