コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }