I’m back to writing a lot of Java (and now Kotlin) over the last year from working on Android Studio. That’s been surprisingly enjoyable due to new features in Java 8 (like streams) that weren’t available last time I work on JVM in 2013.
In my last post on Functional Java: Streams, I left this challenge (slight edit for improved wording):
You are given a finite input stream that you need to parse and return a collections of Foo objects. If you see a line of all equal signs, you’re to…
Kotlin and Java are very close friend. A brotherly relationship (although we know Kotlin had the intention are replace Java in Android someday :P). Mockito is a close friend of Java, so naturally it should work well with Kotlin.