results in the creation of many unnecessary StringBuilder and String objects.
The java.lang.System classprovidesaccesstosystem-orientedresources,includ-
ing standard input, standard output, and standard error.
System declares in , out ,and err classfieldsthatsupportstandardinput,standard
output, and standard error, respectively. The first field is of type
java.io.InputStream , and the last two fields are of type
java.io.PrintStream . (I will formally introduce these classes in Chapter 8 .)
System also declares various static methods, including those methods that are
described in Table 4-6 .