Java command line help
I'm runnning java using command prompt on Vista but I'm having problems with viewing the data my code is outputting.
Say If I ran this code,
I will only be able to view from 52 onwards,despite scrolling up. Is there a way to fix this? It's rather annoying.
public static void main(String args)
System.out.println("i is " + i);
Edit: Screenshot is here: (Arrow indicates can't scroll up more)
ImageShack® - Online Photo and Video Hosting
I'm not too sure what you mean, does it just cut off from 0-52?
Once the code has executed it will take you down to 99, but you can only scroll up to the point where i is 52. Anything before that is gone. So I can't see that i is 12 etc.. has been output.
Use the 'more' command? i.e. "java YourClass | more".
Originally Posted by c98
edit: never mind, I was too slow again ...