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
Han Wu
927 PointsThe desired text doesn't appear
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("hi");
}
}
When I java Introductions this, nothing appears.
1 Answer
piyush arora
5,735 PointsUse java -cp . TreeStory to run the program...cp refers to the Classpath and . refers to the current directory The classpath tells the application where to look for the Treehouse class in the directory...i.e the current directory in this case.
coder5837
1,535 Pointscoder5837
1,535 PointsI believe it's supposed to be System.out.printf("hi")