This preview shows page 1. Sign up to view the full content.
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 doesnt 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
This lab report was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.
- Fall '07