News

Default methods in Java. When default methods were introduced in Java 8, some developers thought they would be the same as abstract classes. That’s not true, however, ...
Java 8 introduced a new list() method in java.nio.file.Files. The list method returns a lazily populated Stream of entries in the directory. As such, it is more efficient for processing large folders.
In Java, we can implement the functional interface with a lambda expression and pass it to a method, then execute the function after an operation is finished. Here’s how that looks in code: ...
Implement a Java Scanner nextChar method. Naturally, all Java developers, after learning the Java Scanner class has no nextChar method, want to implement one of their own. It’s not that hard. By ...