
Oleh : Reza Ervani
بسم الله الرحمن الرحيم
Berikut adalah contoh sederhana penggunaan System.out
dan System.err
:
1 2 3 4 5 6 7 8 | try { InputStream input = new FileInputStream( "/home/rezaervani/Documents/data/" ); System.out.println( "File dibuka..." ); } catch (IOException e){ System.err.println( "Pembukaan file gagal :" ); e.printStackTrace(); } |
Leave a Reply