java:exceptions_try_catch_block

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
java:exceptions_try_catch_block [2019/04/20 03:41]
gthanos [Finaly Block]
java:exceptions_try_catch_block [2019/04/20 03:55] (current)
gthanos [Άλλο παράδειγμα - Ανοίγοντας ένα αρχείο για διάβασμα]
Line 82: Line 82:
       StringBuffer strDocument = new StringBuffer();​       StringBuffer strDocument = new StringBuffer();​
       while ((inputLine = in.readLine()) != null) {       while ((inputLine = in.readLine()) != null) {
-        strDocument.append(inputLine);​+        strDocument.append(inputLine+"​\n"​);
         //throw new IOException();​         //throw new IOException();​
       }       }
java/exceptions_try_catch_block.1555731692.txt.gz · Last modified: 2019/04/20 03:41 by gthanos