Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi All,
- I'm trying to filter the below mentioned response like below please check it once
- Map<String,String> customsettingValues = new Map<String,String>();
- Map<String,String> SelectedValues = new Map<String,String>();
- Set<String> orderList1 = new Set<String>();
- for(String firstKey : customsettingValues.keySet()){
- String firstValue = customsettingValues.get(firstKey);
- for(String secondKey : SelectedValues.keySet()){
- String secondValue = SelectedValues.get(secondKey);
- if(firstValue.equals(secondKey)){
- orderList1.add(secondValue);
- System.debug('orderList1:::---------'+orderList1);
- }
- }
- }
- I got the Response Like below for the above code
- orderList1:::---------{chandra}
- orderList1:::---------{chandraiii@gmail.com,chandra}
- orderList1:::---------{Not Attended,chandraiii@gmail.com,chandra}
- orderList1:::---------{vizag,Not Attended,chandraiii@gmail.com,chandra}
- orderList1:::---------{ap,vizag,Not Attended,chandraiii@gmail.com,chandra}
- orderList1:::---------{Ind,ap,vizag,Not Attended,chandraiii@gmail.com,chandra}
- orderList1:::---------{88888888888,Ind,ap,vizag,Not Attended,chandraiii@gmail.com,chandra}
- How to change above response like below
- orderList1:::---------{chandra}
- orderList1:::---------{chandraiii@gmail.com}
- orderList1:::---------{Not Attended}
- orderList1:::---------{vizag}
- orderList1:::---------{ap}
- orderList1:::---------{Ind}
- orderList1:::---------{88888888888}
- If anybody having idea please let me know
- Thanks In Advance
- Basha
Add Comment
Please, Sign In to add comment