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 trialKate C
13,589 PointsSome error...
public static void main(String[] args) {
Console console = System.console();
// TODO: 1. Create a new String named place and
//assign it a value of your choosing.
String place = "Paris";
// TODO: 2. Using the provided console object,
// prompt the user "What is your first name?" and store that in a variable
String name = console.readLine("What is your first name?");
// TODO: 3. Print out to the console "Hello <FIRST_NAME>! Welcome to <PLACE>."
console.printf=("Hello %s! Welcome to %s.", name, place);
}
The console said this line is incorrect, i couldn't see it T T
console.printf=("Hello %s! Welcome to %s.", name, place);
Please help. Thank you.
1 Answer
Daniel Jong
11,071 PointsHi,
You have an extra equal sign after your console.printf() function. Remove that and it should be working.
Hope it helps!
Kate C
13,589 PointsKate C
13,589 PointsLol thank you. The console pointed arrows on name and place, I kept wondering what went wrong there!!!