import java.io.IOException ; import java.nio.file.Paths ; import java.util.Scanner ; public class test { public static void main(String[] args ) { Scanner in=new Scanner( Paths.get ("chapter9\\t.txt")) while( in.hasNext ()) System.out.println ( in.nextLine (); } } 有何异常? 如何用 throws 语句进行异常处理,并使用 try-with-resources 语句关闭资源 ?