第四天

非静态内部类 调用对象
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()获取系统的当前时间

上一篇:xshell5打一个字母出现两个


下一篇:CLin 和 IDEA创建文件时自动添加作者和时间信息