/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.util.Iterator;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone{
	
	public static class CommonHelperUtilService {
        private List<String> list = new ArrayList();

		public CommonHelperUtilService() {
            list.add("tomasz");
            list.add("zbyszek");
            list.add("jakub");
            list.add("adam");
		}
		
        public List<String> getList() {
            return list;
        }
    }
    
	public static void main (String[] args) throws java.lang.Exception
	{
            CommonHelperUtilService commonHelperUtilService = new CommonHelperUtilService();
            Iterator<String> iterator = commonHelperUtilService.getList().iterator();
            while (iterator.hasNext()) {
                if (iterator.next().equals("zbyszek")) {
                    iterator.remove();
                }
            }

            commonHelperUtilService.getList().forEach(System.out::println);
	}
}