您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 5

image2.gif (960 bytes)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

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg