A description of a system is
A library has a collection of books arranged in sections such as Fiction, Bibliography, History, etc. Each book has a title, author and Dewey decimal clasification number. Each section has a name and stores a range of classification numbers. You can add books to the librar whereby they are added to sections. You can also borrow books for a period. Sometimes books are lost, so they are removed from the library's catalogue.
A car has an attribute of speed. When created, the car is at rest, with a speed of zero. The car can accelerate or decelerate, changing its speed by one unit each time. It can also "emergency stop", changing its speed to zero.
Write Java code to implement the Car
class and its methods.
Write Java code to implement the following algorithms
Identify the GUI objects in the following application
JPanel
, so that when the Submit
button is clicked the name and password are printed to
standard output.
File
has a boolean method
isDirectory()
which returns true (false) if
the file is (is not) a directory