import java.util.ArrayList; import models.EmployeeModel; import models.RestClient; public class App { public static void main(String[] args) throws Exception { System.out.println("REST API lekérés"); RestClient restClient = new RestClient(); ArrayList employees = restClient.getEmployees(); for(EmployeeModel emp : employees) { System.out.printf( "%20s %14s %14.2f\n", emp.name, emp.city, emp.salary ); } } }