Guest User

Untitled

a guest
Feb 4th, 2018
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. for the below code i got the response below step 1 shows i'm after
  2. that little confuse at filter the response like below step 2:
  3.  
  4. Map<String,String> test = new Map<String,String>();
  5. Map<String,String> samp= new Map<String,String>();
  6. Set<String> orderList1 = new Set<String>();
  7.  
  8.  
  9. for(String first : customsettingValues.keySet()){
  10. String firstValue = samp.get(first);
  11. for(String second : test.keySet()){
  12. String secondValue = SelectedValues.get(second);
  13. if(firstValue.equals(second)){
  14.  
  15. listofrecords.add(secondValue);
  16. System.debug('listofrecords:::---------'+listofrecords);
  17.  
  18. }
  19. }
  20. }
  21.  
  22. step 1 :I got the response like below
  23.  
  24. test
  25. test,test@gmail.com
  26. test,test@gmail.com,9999999999
  27.  
  28. step 2 :Insted of that how to get the response like below
  29.  
  30. test
  31. test@gmail.com
  32. 99999999999
Add Comment
Please, Sign In to add comment