I have been stuck with this for a while. Let me give you an example of what I am looking for : if you have ever formatted a disk from the dos console you would remember that the percent completed would refresh on the same line. I have been looking for code which does the same i.e. prints on the same line or rather updates that very line instead of printing on a new lineon every print call.
I tried it but it is not exactly what I am looking for. I want to print on exactly the same place (position)where the previous String printed. Try this : Go to your dos console put a empty/useless diskette in your floppy drive format the diskette from the dos prompt after a series of warnings you will get something like this 1%Completed,2%Completed...... printing on exacly the SAME location on the SAME line. I am desperate for a solution as I have to submit my project by monday and this is the only place I am getting stuck.
I found this idea interesting and tried something too. So, here's another one....
Joined: Jan 02, 2001
Jo, Yo beat me to the answer. I thought my example would be a little clearer if I showed the spaces. The lesson here is not get cute. Just stick with the requirements! -Peter
Joined: Aug 23, 2001
I am amazed by the number of ways the same task can be done in JAVA. I tried Shilpa Kulkarni's code and its amazing how she manages to get the same thing done. Kudos to you Shilpa Kulkarni !! its wonderful the way in which you put the idea from concept to code !