Add java 11 (#1049)

This commit is contained in:
Leon Mak
2019-10-28 04:08:09 +08:00
committed by Ilkka Seppälä
parent 63fb8dc318
commit 6bb3438965
5 changed files with 31 additions and 43 deletions

View File

@ -128,10 +128,6 @@ public class App {
final Customer customer1 = new Customer(1, "Adam", "Adamson");
final Customer customer2 = new Customer(2, "Bob", "Bobson");
final Customer customer3 = new Customer(3, "Carl", "Carlson");
final List<Customer> customers = new ArrayList<>();
customers.add(customer1);
customers.add(customer2);
customers.add(customer3);
return customers;
return List.of(customer1, customer2, customer3);
}
}