Exercises
Exercise 1 — Using the FileReader class Java defines a class called FileReader which combines the functionality of a FileInputStream and InputStreamReader . Using this class we can rewrite the Java code to create a BufferedReader so that is uses only three classes, rather than four. Use the JDK documentation to find out about the FileReader and change the Java below so that it uses a FileReader rather than a FileInputStream and an InputStreamReader Discussion/Suggestion solution to Exercise 1 Back to content Back to top 
RITSEC - Global Campus Copyright ?1999 RITSEC- Middlesex University. All rights reserved. webmaster@globalcampus.com.eg |