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

Prabh Bajwa
seal-mask
.a{fill-rule:evenodd;}techdegree
Prabh Bajwa
Front End Web Development Techdegree Student 1,665 Points

Sir I'm trying to make this code work in sublime-text-3 as well but it's not working there please help me?

Hello, Sir My name is Prabh and I was trying to work in Sublime-Text-3 I but this code:

import java.io.Console;

public class Introductions {

public static void main(String[] args) {
    Console console = System.console();
    // Welcome to the Introductions program! Your code goes below here
    console.printf("Hello, my name is Craig");
}

}

is not working with Sublime what should I do but this code is working just fine: public class Introductions{ public static void main(String ...args){ System.out.println("Hello, my name is Prabh"); } }

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hi Prabh Bajwa !

I think you'll find an IDE better to use than a text editor like Sublime. I'm a big fan of sublime for JavaScript, but a full blown IDE is great for strongly typed languages like Java.

Check out Local Development Environments for how to get it set up!

Hope it helps!

Craig Dennis
Craig Dennis
Treehouse Teacher

For Java we are using IntelliJ IDEA, and for Android we are using Android Studio (based on IntelliJ IDEA)

Prabh Bajwa
seal-mask
.a{fill-rule:evenodd;}techdegree
Prabh Bajwa
Front End Web Development Techdegree Student 1,665 Points

Craig Dennis thank you sir for the answer but I'm having a problem my code It's Also not working in eclipse now its giving me errors import java.io.Console;

public class Introductions {

public static void main(String[] args) { Console console = System.console(); // Welcome to the Introductions program! Your code goes below here console.printf("Hello, my name is Prabh"); } }