Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
List<Teenager> teens = new ArrayList<>();
teens.add(new Teenager(15,"Apple"));
teens.add(new Teenager(16,"Samsung"));
teens.add(new Teenager(14,"Xiaomi"));
teens.add(new Teenager(14,"Samsung"));
teens.add(new Teenager(16,"Apple"));
teens.add(new Teenager(16,null));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment