摘要: 当子类和父类定义了相同名字的代码段时: 1 package test_03; 2 class Parent{ 3 public int myValue=100; //默认值 100 4 public void printValue() { 5 System.out.println("Parent.p 阅读全文
posted @ 2020-10-21 16:02 靠谱杨 阅读(258) 评论(0) 推荐(0)
摘要: File类的基本使用 构造方法: public File (String pathname) public File(FIle parent,String child) 创建文件: public boolean ceratNewFile() throws IOException 删除文件: publ 阅读全文
posted @ 2020-10-21 15:50 靠谱杨 阅读(114) 评论(0) 推荐(0)