Project: Hexadecimal Literals
Write a program that prints each of the [[hexadecimal]] [[literals]] in the table below in a print statement to see if the decimal equivalents are correct.
| Decimal | Hexadecimal |
|---|---|
| 0 | 0x0 |
| 8 | 0x8 |
| 15 | 0xf |
| 326 | 0x146 |
| 43981 | 0xabcd |
| 439041101 | 0x1a2b3c4d |
| -326 | -0x146 |
Output
$ javac -Xlint HexadecimalLiterals.java
$ java -ea HexadecimalLiterals
0
8
15
326
43981
439041101
-326
Pure Programmer

