document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * @author (Andika Nugrahanto)
  3.  * @version (22/12/2020)
  4.  */
  5. public class Example1
  6. {
  7.    public static void main(String args[])
  8.    {
  9.       try{
  10.          int num1=30, num2=0;
  11.          int output=num1/num2;
  12.          System.out.println ("Result: "+output);
  13.       }
  14.       catch(ArithmeticException e){
  15.          System.out.println ("You Shouldn\'t divide a number by zero");
  16.       }
  17.    }
  18. }
');