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

Are there any courses on how to use Java that don't use the console class?

I am still on my trial for Treehouse, and I want to continue to expand upon my skills using Java, but the console class doesn't work with any IDE programs such as Eclipse and NetBeans. The only way I practice the kind of programs they are making without going outside of Treehouse is if I do a notepad for every code, then run it through the command prompt, which I find to be a waste of time and I'm not interested in using Treehouse for learning java if they are using the console.printf for every practice instead of the system.out.println, which is what they should be using. Can anyone direct me to some specific courses in the Library that are better?

4 Answers

Hey Kenneth,

they just use the console.printf at the beginning of the course.... Pretty soon you'll be introduced to System.out.printf. And speaking about IDE's... It's really up to you what you want to use to program, If you haven't tried advanced text editors yet, I really recommend Atom from Github. Sublime Text is pretty good too. And if you don't want to "waste time" compiling the code before run it (if you use the '&&' you can do 2 commands in one line, so, pretty fast), you can try installing an extension in the text editor to run code there too.

Most of the training videos are on there are using the jshell and workspace, and it's really annoying, because I don't want to use those as they are not needed to program in Java, and make it more confusing. I just want them to teach the code and concepts without having to learn to use some new kind of tool.

Well, yes. Workspaces is used in most of the videos, since it's easier than going through the process of seting up environments before you start actually learning anything. But anyway, check the notes below the videos to see if you can find download links for the files used during the course, you can download them and follow along in your own IDE. Jshell is not needed to actually program in Java, but it's an amazing tool to check how things work, without actually having to write and compile programs everytime. I'm not sure you understand the concept of Jshell, there are many other programming languages that have similar tools. I don't understand what you mean by saying you don't want to learn new tools. Isn't the point of studying to learn new things?

What I mean is that in the tools such as Eclipse and NetBeans, you don't need to do all that command prompt things to actually run the code. I tried making text editor files with the .java extension, and running them through a command prompt, but there are a lot more tedious steps, there are sometimes files missing that it needs, etc... What is really the point of all that anyway? Why not just use a compiler?

Like I previously said. The workspaces exclude the necessity of going through the setting up part of any environment. But anyway, further down the Java course I think that Craig starts using and IDE... But really, that's just a minor thing.. doing javac something.java && java something it's not that big a deal. If you are running into problems of missing files, it's something outside the scope of any java course. It's about organizing your files correctly.