Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
217,577 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.