Unformatted text preview: method, transferNegativeNumbers(String infilename, String outfilename) throws Exception that will open and read all the numbers from the input file filename . As the numbers are being read, this method will save all the negative numbers to the output file outfilename . Note that you have to create this file if it doesn’t already exist. You will need to use a loop and an if statement, of course. Think about the order that you will need to execute these commands. ◊ Create a Testing object, and invoke the transferNegativeNumbers method with input Strings “input1.txt” and “output1.txt”. And then again with “input2.txt” and “output2.txt”. Get the input files from the usual downloads locations. Remember that the input file should be in the project folder. For reference, the online java documentation that describes constructors and methods for built-in classes and libraries is http://java.sun.com/javase/6/docs/api/...
View Full Document
- Fall '07
- Subroutine, outer wrapper, input file filename, new project files-14