Oleh : Reza Ervani
بسم الله الرحمن الرحيم
Berikut adalah contoh sederhana penggunaan System.out dan System.err:
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