首页 > 其他 > 详细

第四天

时间:2019-09-26 22:06:22      阅读:76      评论:0      收藏:0      [点我收藏+]

非静态内部类 调用对象
Test01.Test001=new Test01().new Test001()
静态内部类 Test01.Test001=newTest01.Test001()
导入import static java.lang.math就可以直接用其中的方法
Integer a=Integer.valueOf(30)基本数据类型转成对象
对象转成基本数据类型int b=a.intValue()
Integer c=Integer.parseInt(“123”);字符串转化成基本数据类型
String d=c.toString()
StringBuilder 可以改变字符串的值 且其有很多方法insert().insert()源代码this
多维数组 int[][] a=new int[3][]
a[0]=new int[2];a[0]=new int[]〔20,30〕;
getabSolutePath user.dir
file mkdir mkdirs
enum 枚举都是常量
exception catch()子类在前父类在后
long Runtime.getRuntime().FreeMemory()获取系统的内存剩余空间
System.currentTimeMillis()获取系统的当前时间

第四天

原文:https://www.cnblogs.com/zilvmeiyitian/p/11594417.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!