
40 CHAPTER 1 Introduction to Programming and the Java Language
EXERCISES,PROBLEMS, AND PROJECTS
system is being used. For instance, here are some examples of the
equivalent of some octal numbers in the decimal system:
Octal Decimal
000 0
001 1
007 7
010 8
011 9
In the hexadecimal system, numbers are represented using digits from
0 to 9 and letters A to F; 0x is placed in front of the hexadecimal num-
ber to indicate that the hexadecimal system is being used. For
instance, here are some examples of the decimal equivalents of some
hexadecimal numbers:
Hexadecimal Decimal
0x0 0
0x1 1
0x9 9
0xA 10
0xB 11
0xF 15
0x10 16
0x11 17
0x1C 28
1. Convert 0xC3E (in hexadecimal notation) ...