Code snippets for articles posted at 4comprehension.com provided "as-is" and organized using the one-top-level-module-per-series strategy.
- Bypassing Kotlin’s Null-Safety (snippets)
- Maintaining PriorityQueue Order with Java Streams (snippets)
- Sneakily Throwing Exceptions in Lambda Expressions in Java (snippets)
- Hamming Error Correction with Kotlin Series (snippets)
- A Kotlin Type-Inference Puzzler (snippets)
- Kotlin: Beware of Java Stream API Habits (snippets)
- Leveraging Lambda Expressions for Lazy Evaluation in Java (snippets)
- Effectively Sealed Classes in Java (snippets)
- CompletableFuture Timeouts in Java (snippets)
- Implementing a Sliding Window Stream/Spliterator in Java (snippets)
In most cases, I'm using a simple unit-testing infrastructure to squeeze multiple examples in a single file - it's enough to import the module in your IDE and run JUnit tests.
However, there might be some exceptions - in such cases, you will find instructions in matching articles