Monday, March 28, 2011
Input Output Assignments
Mr. Arkin surprised the class with a party planned for April 1st! I first thought that it was a trick because April 1st is April Fool’s Day. Today, we also began the Input Output Assignments. Import statements are needed to access packages such as Buffered Reader, Input Stream Reader, IOException, etc. These statements also need to be in alphabetical order at the very top. The Buffered Reader allows the program to interact with the user through a file or the console. We also need to close the inputFile and the outputFile at the end of the code. We also learned parsing integers and doubles because any line of text read from the input file is taken in as a string. With Buffered Reader and File Writer, programs can help the users in solving problems.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment