Murach's Beginning Java 2, SDK 1.4

This chapter shows how to work with operators, including the increment and decrement operators, and it shows how to set, manipulate, and format dates and times.

Chapter 7 How to work with operators and dates
Operators, order of precedence, and associativity 224
A review of operators 224
How to work with the increment and decrement operators 226
How to work with the shortcut if/else operator 228
How to work with the instanceof operator 228
How to work with the bitwise and shift operators 230
How to work with order of precedence and associativity 232
How to work with dates and times 234
How to use the GregorianCalendar class to set dates and times 234
How to use the Calendar and GregorianCalendar fields and methods 236
How to use the Date class 238
How to use the DateFormat class to format dates and times 240
Code that adds the current date to the Book Order application 242
Perspective 244
t




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart


See the Java 1.5 edition