public List<String> getQuestions(List<SecurityQuestions> secquli) { // TODO Auto-generated method stub List<String> sqs = new ArrayList<String>(); for (SecurityQuestions s : secquli) { sqs.add(s.getSecquestion()); } return sqs; }
public Map<Integer, String> processList(List<SecurityQuestions> li) { // TODO Auto-generated method stub /* * List<Integer> sid=new ArrayList<Integer>(); List<String> sqs=new * ArrayList<String>(); */ Map<Integer, String> smap = new HashMap<Integer, String>(); for (SecurityQuestions s : li) { smap.put(s.getQid(), s.getSecquestion()); } return smap; }