comparison chapter7/try.scala @ 0:b316eec6fa7a draft default tip

add sample files
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 08 Jan 2013 16:41:46 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b316eec6fa7a
1 import java.io.FileReader
2 import java.io.FileNotFoundException
3 import java.io.IOException
4
5 try {
6 val f = new FileReader("input.txt")
7 } catch {
8 case ex: FileNotFoundException =>
9 case ex: IOException =>
10 }