esame programmazione distribuita + readme
This commit is contained in:
34
test/test.java
Normal file
34
test/test.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package test;
|
||||
|
||||
/**
|
||||
* Created by Giovanni on 14/01/2015.
|
||||
*/
|
||||
public class test {
|
||||
|
||||
public static void main (String[] args){
|
||||
|
||||
|
||||
System.out.print(fai(5));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static int fai (int a){
|
||||
try {
|
||||
return a;
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
System.out.print("sada");
|
||||
}
|
||||
|
||||
|
||||
|
||||
finally {
|
||||
//return 10;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user