This is what I have so far:
class Customer{ private String name; private int age; public Customer(String n, int a)throws CreateException{ if(0<a<125){ Name=n; Age=a; throw new CreateException(“ Age limit is 0 to 125 ”); } } public void print(){ System.out.println(" The Name:" +Name); System.out.println(" The Age:" +Age); } } public class CustomerDemo{ public static void main(String args[]){ Customer cust[]=new Customer[2]; for(int i=0;i<2;i++){ try{ c[0]=new Customer(“Ram”,60); c[0].print(); }catch(CreateException e){ System.out.println(“ Complete ”); System.out.println(e.getMessage()); } } } }