Nuacht

In prior Java 101 articles, I referred to the concepts of redirection, standard input device, and standard output device. To demonstrate inputting data, several examples called System.in.read().
A typical “standard Java” approach for detecting whether a String is null, is empty, or consists solely of white space is as shown in the next code listing.