Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Arrays Iteration Ye Olde Unenhanced For Loop

Eric Cho
Eric Cho
2,151 Points

How do you stop the code when you use "less" in the console. It states "END" and doesn't let me exit.

Please advise. thank-you in advance.

2 Answers

Steven Parker
Steven Parker
231,236 Points

Anytime it pauses (including at the end), hitting the letter "q" (for "quit") should cause "less" to exit. Also, hitting the letter "h" should give you a list of all the key commands it recognizes and what they do.

If that doesn't work, Ctrl-C will stop most things no matter what state they are in.

Eric Cho
Eric Cho
2,151 Points

Both of those don't work for me. It doesn't respond to anything but typing in letters after log files:

Eric Cho
Eric Cho
2,151 Points

Thanks Steven. That worked.