/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author STUDENT */ import java.io.*; public class ArithmeticException { /** * @param args the command line arguments */ public static void main(String[] args) { int value=5; String xval= "a"; try{ for (int current=1; current<=10; current++) value=value+ Integer.parseInt(xval); } catch (Exception e){ System.out.println("Arithmetic Exception occured" ); }finally{ System.out.println(value); } System.out.print("Value = " +value); } }