June 2017
Beginner
1296 pages
69h 23m
English
... can also format the value of any reference. If the reference is non-null, "true" is output; otherwise, "false". When conversion character B is used, the output is displayed in uppercase letters. |
|
h or H |
Print the string representation of an object’s hash-code value in hexadecimal format. If the corresponding argument is null, "null" is printed. When conversion character H is used, the output is displayed in uppercase letters. |
% |
Print the percent character. |
n |
Print the platform-specific line separator (e.g., \r\n on Windows or \n on UNIX/LINUX). |
b, B, h, H, % and n conversion characters.
1 // Fig. I.11: OtherConversion.java
2 // Using the b, B, h, H, % and n conversion characters.
3
4 public class OtherConversion