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

Android Guess How Many Are In The Jar Game in Android

Karim Zibari
Karim Zibari
7,358 Points

What is meant by this step in the Jar Game project? "Use System.out for output and a reader on System.in for input"

Can anyone please explain what is meant by this step in the Jar Game project. I have used a Console object to read from the keyboard and write to the display without any problems.

Tyler Combs
Tyler Combs
15,525 Points

I believe when I was on this project I used a Scanner object for input.

For example:

private Scanner mScanner = new Scanner(System.in);

Then, from within your method/s:

String input = mScanner.next().trim().toLowerCase();