Question: Class name: FileExercises -Methods: public void append(String text, String filename) -Append text to the text file filename. public void getLetters (String inputFileName, String outputFileName) concatenate

 Class name: FileExercises -Methods: public void append(String text, String filename) -Append

Class name: FileExercises -Methods: public void append(String text, String filename) -Append text to the text file filename. public void getLetters (String inputFileName, String outputFileName) concatenate them together, and place the result in the output file (also a file -If any errors occur while opening the file or writing to the file, do nothing at all. -Take the first letter from each word in the input file (a text file), translate them to upper case, -If there is an exception, catch the proper exception and write the name of the exception in the output text file). public int count(String word, String filename) -Counts the number of times word appears in text file fiename. -You can assume there is no punctuation in the file. -You may assume that all white space is either a new line or a single space. -Do not include the times that word appears as a substring of another word in the file. -If an exception occurs, return -1 public double sumNumbers(String inputFilename) inputFilename is the name of a binary file. -The first entry is of type int, indicating the amount of double numbers in the file. -Read all the doubles, sum them and return the result -If an exception occurs, return -1.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!