Hi,
Can you please advise how do I read the specific values from my properties file.
My properties file uni.properties contains the following parameters
country.state=01,20,50,72
prog.district=05,55,79
branch.region=07,23,34
here is my pseudo code
My program
private String getCode(String classType) {
String classCode = "";
ResourceBundle value = ResourceBundle.getBundle("
uni");
if (classType.equalsIgnoreCas
e(value.ge
tString("c
ountry.sta
te"))){
classCode = MyConstants.COUNTRY;
}
if (classType.equalsIgnoreCas
e(value.ge
tString("p
rog.distri
ct"))){
classCode = MyConstants.PROGRAMME;
}
if (classType.equalsIgnoreCas
e(value.ge
tString("b
ranch.regi
on"))){
classCode = MyConstants.BRANCH;
}
return classCode;
}
How do i read all the individuals comma seperated values 01 or 20 or 50 etc in my if condition
to put the appropriate classCode for each values.
Regs
bangviz
Start Free Trial