String addr[]=new String[2];
addr[0]="MIDC,Pune";
addr[1]="Nagzari,Amaravati";
addr[2]="Navi Peth,Pune";
Employee Jayesh=new Employee(1001,"Jayesh Damle",25000f,new Date(13,3,1998),new Date(14,5,1978),"Account",addr);
& collect the array of addresses from constructor of Employee like following
public Employee(int empNo,String empName,float sal,Date joi_date,Date date_of_birth,String dept_info,String[] addresses)
but its giving error ArrayIndexOutOfBounds.

New Topic/Question
Reply




MultiQuote





|