A good answer might be:Easy, just do this: String fileName = args[0] ; |
ConstructorsThe constructor for BufferedReader looks like this: BufferedReader( Reader in ) The constructor for FileReader looks like this: FileReader( String fileName ) throws FileNotFoundException The methods from BufferedReader which interest us are:
The read() method will be discussed later. (Both classes have other constructors and methods which will not be discussed here). |
QUESTION 5:What does the close() method do with an input stream? Click Here after you have answered the question |