Hi, could someone help please.
I need to know how to use while statement instead of try and catch to execute this program please help .
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package testtrycatch; /** * * @author group4 */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { int i =1; int j =0; try { System.out.println("Try block entered " +"i = " + i +" j = " +j); System.out.println(i/j); System.out.println("Ending try block"); } catch (ArithmeticException e) { System.out.println("Arithmetic exception caught "); } System.out.println("After try block "); return; } }