Core Java
-
API Updates in Java SE 11 (18.9)
Java SE 11, which is also named as 18.9 (based on the new naming scheme which uses the year and…
Read More » -
Binary Search in Java without Recursion – Iterative algorithm
This week’s task is to implement binary search in Java, you need to write both iterative and recursive binary search…
Read More » -
Java 10: Collecting a Stream into an Unmodifiable Collection
Java 10 introduces several new methods to facilitate the creation of unmodifiable collections. The List.copyOf, Set.copyOf, and Map.copyOf methods create…
Read More » -
Void methods as behavior black holes
This post could have been titled ‘Void methods considered harmful’, if ‘considered harmful’ essays weren’t considered harmful themselves. Oh welp.…
Read More » -
Shebang Coming to Java?
Although it was never a central goal of JEP 330 [“Launch Single-File Source-Code Programs”] to add support for the Unix-style…
Read More » -
Java’s String.format Can Be Statically Imported
JDK-8203630 [“Add instance method equivalents for String::format”] postulates that “the argument for implementing String::format as static appears to be that…
Read More » -
Machine Learning in Java, part 1
You searched for some way to export your machine learning models so you can use them for evaluating your data…
Read More » -
Java 10: The “var” keyword
Java 10 has introduced local variable type inference with the keyword var. This means that instead of writing: Map<Department, List<Employee>>…
Read More » -
Migration Advice for Java 10
Hello there once again to another hot shot. My name is Peter Pilgrim, Platform engineer and DevOps specialist, Java Champions.…
Read More »