This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:class_file [2016/03/18 21:05] gthanos [Παράδειγμα 2] |
java:class_file [2016/03/18 21:07] gthanos [Παράδειγμα 2] |
||
---|---|---|---|
Line 98: | Line 98: | ||
File f = new File("./"+args[0]); | File f = new File("./"+args[0]); | ||
if( !f.exists() ) { | if( !f.exists() ) { | ||
- | f.createNewFile(); | + | try { |
+ | f.createNewFile(); | ||
+ | } catch( Exception ex ) { | ||
+ | ex.printStackTrace(); | ||
+ | } | ||
} | } | ||
} | } |