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

I'm using a JDK instead of workspace, which one works best with the Java beginners course?

I am running into this issue: https://stackoverflow.com/questions/26470972/trying-to-read-from-the-console-in-java

So what works in Treehouse's workspace doesn't seem to work in IntelliJ IDE. I have read all of the workarounds but it makes following along really tough and time-consuming.

So my question is what IDK is recommended for the beginning courses? Is anyone else having this issue?

Philip Schultz
Philip Schultz
11,437 Points

What exactly isn't working in Intelli J? Like the way he prints text to the screen using 'console'?

1 Answer

Tonnie Fanadez
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tonnie Fanadez
UX Design Techdegree Graduate 22,796 Points

Hi Ari Jones

The best IDE which is also recommended by Treehouse is IntelliJ IDEA.

Still, Treehouse recommends that you first use the workspace before the IDE to pick up some basic Java skills.

If you really need to use IDE then I suggest you replace the Console Object used in workspace with Scanner to take user input. As Philip Schultz has also indicated you should you use System.out.print, or Sysem.out.println or System.out.printf.

//instead of console.printf(); use

System.out.printf( "text %s", string );

//instead of String x = console.readLine(); use
Scanner scanner = new Scanner(System.in);
String x = scanner.nextLine();