import java.util.ArrayList; import java.util.List; public class App { public static void main(String[] args) { List employees = new ArrayList<>(); DataService data = new DataService(new MariadbConnection()); employees = data.getEmployees(); for(Employee employee : employees) { System.out.println(employee.name); } data.insertEmployee("Park Elemér", "Szolnok"); } }