关于 BufferedReader 问题# Java - 爪哇娇娃
s*1
1 楼
i have a program like this, when the statement "reader.getLine()" in my main
method is run, it gives the error "Stream closed". Why????
I have a function that has a local bufferedreader that I need, and I close
that local reader because it is "cleaner" this way. Then when I return to my
main program, I have a separate bufferedReader, with seperate instantiation
, but the program does not seem to "separate" them? Any explanations? What
should I do to correct it?
public static void main() throws
method is run, it gives the error "Stream closed". Why????
I have a function that has a local bufferedreader that I need, and I close
that local reader because it is "cleaner" this way. Then when I return to my
main program, I have a separate bufferedReader, with seperate instantiation
, but the program does not seem to "separate" them? Any explanations? What
should I do to correct it?
public static void main() throws