finds.dev← search

// the find

cami-la/curso-dio-intro-collections

★ 605 · Java · updated Jan 2023

Resolução dos exercícios propostos: CURSO INTRODUTÓRIO COLLECTIONS FRAMEWORK JAVA.

Worked solutions to the exercises in the Digital Innovation One intro course on Java Collections, split into packages for List, Set, Map and the Stream API. It is written for Java learners on Java 11 who want to check their answers against a reference, not for anyone looking for a library.

- The package layout follows the course outline, so each collection type has its own teaching examples and exercise solutions side by side. Finding the answer to a given exercise takes seconds.

- Ordering goes past the basics. The tree has multi-key comparators such as ComparatorNomeCorIdade and ComparatorNomeAnoDeCriacaoIde, plus a paraSaberMais folder that sorts maps keyed by custom objects. That is where most learners get stuck.

- The Stream API gets its own package, separate from the collection examples, which keeps the imperative and stream versions of the same problem easy to compare.

- There is no build file at the root, no pom.xml or build.gradle, only the IntelliJ .iml and .idea folder. It does not compile from a terminal or in CI without the IDE.

- The out/ directory of compiled .class files and the .idea settings are committed. Build output in a repo is noise, and it goes stale as soon as the sources change.

- There are no tests and no assertions. Each class prints to the console, so a reader has to eyeball the output to know whether an answer is correct.

- Last pushed in January 2023 and written against Java 11. Nothing in the README explains trade-offs such as ArrayList versus LinkedList or HashSet versus TreeSet, so it answers the exercises without saying why one collection is the better choice.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →