标签:fileread mis reader span ring array try catch object scala
object Test { def main(args: Array[String]) { try { val f = new FileReader("input.txt") } catch { case ex: FileNotFoundException =>{ println("Missing file exception") } case ex: IOException => { println("IO Exception") } } }
标签:fileread mis reader span ring array try catch object scala
原文地址:https://www.cnblogs.com/hhz-97/p/12953097.html