java7

try with resources: new with java7

try(FileInputStream in = new FileInputStream(file)){

//blabla
}

//不要再写下面的这个玩意了。
//finally{
//in.close();
//}



posted on 2012-02-19 00:30  grepp  阅读(116)  评论(0编辑  收藏  举报

导航