Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test@test.com
- test@test.com;test2@test.com
- test@test.com;test2@test.com;test3@test.com
- ;
- String[] emails = { "test@test.com;test2@test.com;test3@test.com", "test@test.com" };
- List<string> result = new ArrayList<String>();
- for ( string listOfEmails : emails ) {
- for( string email : listOfEmails.split(";") ) {
- result.Add(email).
- }
- }
- System.out.println(result);
Add Comment
Please, Sign In to add comment