News

This Java tip introduces additional concepts and techniques related to fields and methods–namely field constants, field-access rules, chaining instance method calls, pass-by-value arguments ...
The first seven posts of my series of dealing with too many parameters expected in Java methods focused on alternative approaches to reduce the number of parameters a method or constructor expects ...
To complete the use case, you must convert this one-character String into a single Java char with the charAt(0) method. Java Scanner char input code example The code to get Scanner input one char at a ...
The example code below shows how to use Java’s DirectoryStream in a method to list the files of a directory: public Set<String> listFilesUsingDirectoryStream(String dir) throws IOException { ...
In announcing Java 18 support for Java on VS Code as part of the April 2022 update, Microsoft highlighted changes including: Support Inlay Hints for Parameter Names: Developers can enable Inlay Hints ...
While PMD works on source code, the FindBugs tool looks for code smells in compiled Java code. This Java static code analysis tool sifts through bytecode and finds sources of potential errors and ...
The big news in the July 2022 update to Microsoft's Java on Visual Studio Code extensions is that they all now fully support the Lombok library. Project Lombok is designed to reduce boilerplate code, ...