Unreachable catch block for IOException. This exception is never thrown from the try statement body 不可到达的 catch 块异常.try 中的语句,永远不会引发此异常 2 quick fixes available 2 快速修复可用 点击其中一个,可以解决这个问题.
想删除本地一个项目目录,结果windows说路径太长,不能删除.于是试了试java删除.一切ok.以后一定要抓紧时间学python. /** * Created by rmiao on 4/21/2016. */ public class TestDel { public static void main(String[] args) throws IOException { String dest = "D:\\perforce\\workspace2\\EPC"; File fil
方法重写 1.重写只能出现在继承关系之中.当一个类继承它的父类方法时,都有机会重写该父类的方法.一个特例是父类的方法被标识为final.重写的主要优点是能够定义某个子类型特有的行为. class Animal { public void eat(){ System.out.println ("Animal is eating."); } } class Horse extends Animal{ public void eat(){ System.out.println ("