
11.10 Exercises,Problems,and Projects 813
EXERCISES,PROBLEMS, AND PROJECTS
At compile time, you get the following error:
Test.java:12: cannot find symbol
symbol : constructor BufferedWriter (java.lang.String)
location: class java.io.BufferedWriter
BufferedWriter bw = new BufferedWriter( “data.txt” );
^
1 error
Explain what the problem is and how to fix it.
11.10.6 Write a Short Program
43. Write a program that reads a file and writes a copy of the file to
another file with line numbers inserted.
44. In Internet programming, programmers receive parameters via a
query string, which looks like a String with fields separated by the “&”
character. Each field t ...