I have this Java program which gives an output that runs into 10000s of lines. I use Windows. When I run the program in cmd, It doesn't show more than around 500 lines, how do I see all my output?

Recommended Answers

All 2 Replies

You can either modify the properties of the command window [cmd] to show more than 500 lines [ALT + SPACE + P -> Screen Buffer Size -> Height] or pipe the output of your java program to some text file [java YourProgram > file.txt].

Thanks, sending the output to a file did my job.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.