public Customer findUsingEnhancedForLoop( String name, List<Customer> customers) { for (Customer customer : customers) { if (customer.getName().equals(name)) { return customer; } } return null; }