| TryFragment.java - Et konkret eksempel på en try catch konstruktion. | Lecture 10 - slide 16 : 26 Program 1 |
try {
...
int i = Integer.parseInt(str.substring(j,k));
...
}
catch (StringIndexOutOfBoundsException e){
...
}
catch (NumberFormatException e){
...
}
catch (Exception e){
...
}
|