Instructions: Answer the following questions one at a time. After answering each question, check your answer (by clicking on the check-mark icon if it is available) before proceeding to the next question.
Getting Ready: Before going any further, you should:
downloads
directory/folder). In most browsers/OSs, the
easiest way to do this is by right-clicking/control-clicking on
each of the links above and then selecting eclipseskills
(that uses the
course style guide and formatter and does not use a module).
PhoneCard.java
and PhoneDriver.java
into the src
directory of the project (using the "Copy" option). Note: If Eclipse
does not allow you to do this, it may be because you are not using
the "Java Perspective".
PhoneCard.java
and PhoneDriver.java
.
.java
file, select all of the source code
(prefereably using a keyboard shortcut), and re-format all of the
source code.
main()
method in the PhoneDriver
class,
what kind of objects are end
, now
, and
start
?
main()
method in the PhoneDriver
class,
what kind of object is card
?
PhoneCard
class?
.class
file that was generated by the
compiler for the PhoneCard
class?
Date
class?
.class
file for the Date
class?
Date
class.
Make sure you find the documentation for the Date
class that
is in java.util
. (There are several Date
classes
in the Java library.)
Date
object using the default constructor
(i.e., the constructor that has no parameters), what properties
will it have?
PhoneCard
class?
PhoneDriver.java
to make sure that it has the focus.
PhoneDriver.java
that contains the statement
card.startCall("540-568-1671", start);
and pull
down to Toggle Breakpoint.
PhoneDriver
and stop the execution at the
breakpoint. Note: If prompted, allow Eclipse to
enter the "Debug Perspective".
availableMillis
?
if
statement is highlighted.
availableMillis
? (Hint: Look
in the "Variables" tab. You may beed to scroll.)
PhoneDriver
and stop the execution at the
breakpoint.
balance
?
callNumbers[0]
?
callStarts[0]
?
PhoneDriver.java
that
constructs a Date
and assigns it to a variable
named start
.
Date
constructor. If it was unable to do so, why
was it unable to do so?
Copyright 2023