摘要:
常见异常分类: ArithmeticException - 如试图除以0 NullPointerException - 当程序访问一个空对象的成员变量或方法。 ClassCastException - 类型强制转换错误 ArrayIndexOutOfBoundsException - 访问的元素下标 阅读全文
posted @ 2016-11-14 22:52
iamAnonymous
阅读(149)
评论(0)
推荐(0)
摘要:
package TestFileTree; import java.io.File; public class TestFileTree { public static void main(String[] args){ File file = new File("C:/Users/iwang/De 阅读全文
posted @ 2016-11-14 17:04
iamAnonymous
阅读(868)
评论(0)
推荐(0)
摘要:
java.io.File类:文件和目录路径名的抽象表示形式 通过File对象可以访问文件的属性。 public boolean canRead() public boolean canWritre() public boolean exists() public boolean isDirector 阅读全文
posted @ 2016-11-14 16:45
iamAnonymous
阅读(184)
评论(0)
推荐(0)

浙公网安备 33010602011771号