View Single Post
  #5 (permalink)  
Old 08-21-2008, 11:00 PM
pnolans pnolans is offline
Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
pnolans is on a distinguished road
Default global?
Originally Posted by udayadas View Post
The easier way could have been;

Declare your PrintWriter output as a global variable.In that case output can be shared by both the methods.
Might you feel like giving an example of how to do that? I guess I was dissuaded from doing that since my "Java in a Nutshell" book said that Java does not have global variables.

What would be the syntax for that?

thanks,
Pat
Reply With Quote