import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
class oldEmployee {
public static final int length = 0;
static int empid[]={1,2};
static String Name[]={"name1",name2};
static String State[]={"state1","state2"};
static String City[]={"city1","city2"};;
static String Area[]={"area1","area2"};
public Employee(int empid,String Name,String State,String City,String Area)
{
this.empid=empid;
this.Name=Name;
this.State=State;
this.City=City;
this.Area=Area;
}
public int getEmpId() {
return empid;
}
public void setEmpId(int empid) {
this.empid = empid;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public void setState(String State) {
this.State = State;
}
public String getState() {
return State;
}
public static String getCity() {
return City;
}
public void setCity(String City) {
this.City = City;
}
public String getArea() {
return Area;
}
public void setArea(String Area) {
this.Area = Area;
}}
i have emp class with this hardcoded values can anyone help me to achieve this functionality.
class state
{
city[];
}
class city
{
area[]
}
class area
{
name[];
}
in some web application we see country state area. where when we select country all corresponding states are populated in next drop down
and then when we select state all coresponding areas are populated. i want to emp name based on state city area.
states[]
when i select state all
cities[]
then all
areas[]
regards