Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
java BufferedReader question
Name: osaru Date: March 27, 2004 at 21:50:59 Pacific OS: win CPU/Ram: 512M
Comment:
In Java, when I read a line by executing .readLine(), the pointer gets to point the begining of the next line in a stream. My question is if there is any way to go back to the begining of the previous line. Is this possible? thanks
Name: gpp Date: March 29, 2004 at 07:14:59 Pacific
Reply:
There are two methods for this, mark() and reset()... use mark() to keep track of that particular postion in the stream, and use reset to get back to that position. I'm not sure what you have in mind, but its not quite like rolling back a transaction in the database or something like that. You have to give mark() a read-ahead limit, and if you pass that limit and try a reset, it will probably fail.
Summary: Hello, I have just started taking Java (programming III/IV) at my high school, and was wondering if any of you can give me a better explanation of the following question, than what my teacher had told...
Summary: I am new to Java and programming in general, just starting to take a class in the fall. I have two questions. Is there a way to print out a message and make a program stop, like in an if/else statemen...
Summary: Got a question for those who'd be willing/able to answer. My question is on "adding to" the VM. (yes, this is a concept question) How would/is it possible for one to extend the VM, e.g. add a package ...