CIT 591 Final Exam
Scanner. Import the appropriate class from
Scannerobject to read input from the keyboard, and save it in a variable.
buzz(which you will write below). Pass it the integer as a parameter.
buzzmethod, which takes one integer as a parameter.
static? Why or why not?
class Pointwith two instance variables,
Pointwhich takes two parameters,
y, and sets the corresponding instance variables.
Pointwhich takes no parameters, and uses the first constructor to set both
breakstatement break out of? (Give a complete answer, not just one thing.)
Exceptionused for unchecked exceptions?
|a. Extend what class?
||d. Implement what interface?
|b. Provide what method?
||e. Provide what method?
|c. Start the thread running?
||f. Start the thread running?
okButton, with the text
MyActionListener. Create an instance of this class and attach it to the
buttonPanel. Put the
okButtoninto this panel.
Observableinstance execute to indicate that something has changed?
Observerinstance provide? Give the complete signature.
nargsthat takes any number of integer arguments, and returns the integer count of how many arguments it was given (Example:
nargs(10, 20, 30)should return
counts, whose keys are Strings and the values associated with those keys are integers.
charBlockis a two-dimensional array of printable characters. Write statements (not a complete method) to print out the array.