« first day (1131 days earlier)      last day (1790 days later) » 

7:46 AM
for (String item : itemSelected) {
//my item is ["1" , "2"]
List<String> content = thisMethodReturnList(item);
System.out.println(content);
}


public List<String> thisMethodReturnList(item){

List<String> records = new ArrayList<String>();
try {
switch(item){
case "1" : records.add(item);
break;
case "2" : records.add(item);
break;
}

return records;

}

this content giving me same result .. why?
it supposed to be changed depends on item, but it keeps returning "1" only.
 
8:01 AM
1 message moved from Java
 

« first day (1131 days earlier)      last day (1790 days later) »