![]() |
|
Sample final questions |
writeArrayToFile
that takes an integer array
parameter A
and a String
parameter outputFileName
and that writes the integers in the array out to the file named by outputFileName
.
The file must be opened before being written to. Suggestion: Use a BufferedWriter
object for the file.Comparable
interface?Serializable
interface?Queue
class that extends one of the Java
Collection classes. A queue is a linear data structure that permits items to be
added
to its end and removed from its front. IntMatrix
is the class defined on the
Codes page in the zip file Matrix.zip. Make sure to
include memory allocated to instance variables.IntMatrix M = new IntMatrix(3,4); for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { M.setIntValue(i*j, i, j); } }