Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. test@test.com
  2.  
  3. test@test.com;test2@test.com
  4.  
  5. test@test.com;test2@test.com;test3@test.com
  6.  
  7. ;
  8.  
  9. String[] emails = { "test@test.com;test2@test.com;test3@test.com", "test@test.com" };
  10. List<string> result = new ArrayList<String>();
  11.  
  12. for ( string listOfEmails : emails ) {
  13. for( string email : listOfEmails.split(";") ) {
  14. result.Add(email).
  15. }
  16. }
  17.  
  18. System.out.println(result);
Add Comment
Please, Sign In to add comment