Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Static import

There are a number of classes in the Java core libraries that contain static final fields. One of them is the java.util.Calendar class, that has the static final fields representing days of the week (MONDAY, TUESDAY, etc). To use a static final field in the Calendar class, you must first import the Calendar class.

import java.util.Calendar;


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial