Index
All Classes and Interfaces|All Packages
C
- closeWriter() - Method in class Writer
-
This method appends an end message to the PrintWriter object and then closes the PrintWriter to ensure no memory leaks occur.
F
- FileMain - Class in Unnamed Package
-
This class serves as the "main" class which contains the starting point for your program.
- FileMain() - Constructor for class FileMain
G
- getFileContents(String) - Method in class Reader
-
Calls the getFileScanner(String fileName) method for the Scanner returned, using this Scanner, each line of the file is read and stored in the fileContents ArrayList
. - getFileScanner(String) - Method in class Reader
-
This method takes a parameter of a String and uses that String to create and return a file Scanner that will allow reading from the provided fileName.
L
- logDuplicates(ArrayList<String>) - Method in class Writer
-
This method works through each element contained in the provided ArrayList
and determines if duplicate elements exist within the ArrayList. - logMax(ArrayList<String>) - Method in class Writer
-
This method works through each element in the provided ArrayList and determines the largest number that is contained within said ArrayList.
- logReverse(ArrayList<String>) - Method in class Writer
-
This method should work through the ArrayList provided backwards, and print each element to our file backwards, using the PrintWriter initialized in the constructor.
M
- main(String[]) - Static method in class FileMain
-
The main function which asks the user for which file they would like to use, the contents of the file are read and stored in an ArrayList
.
O
- outputFile - Variable in class Writer
R
- Reader - Class in Unnamed Package
-
This class is used only for the purposes of creating a file Scanner object and using that Scanner to read the entire contents of the file name that is provided.
- Reader() - Constructor for class Reader
W
- Writer - Class in Unnamed Package
-
This class is where you will be writing to a newly created file.
- Writer(String) - Constructor for class Writer
-
The FileOutput constructor takes in a single String parameter, which is the name of the file we would like to create.
All Classes and Interfaces|All Packages