import java.util.ArrayList; public class Client { public void printEmps() { System.out.println("REST API lekérés"); HttpClient http = new HttpClient(); ArrayList list = http.getEmployees(); for(Employee employee: list) { System.out.println(employee.name); } } }