COntoh 1:
public class Exceptinghandling {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
long x=321;
try {
System.out.format("%3d%n",x);
}
catch (Exception e) {
System.out.print("Ada Keslahan Pada : ");
System.out.println(e);
}
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment