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 trialKetaki Kshetramade
1,661 Pointswhats wrong in this code
task 4
// I have imported java.io.Console for you. It is a variable called console.
String firstName = console.readLine("Please enter your first name: ");
console.printf("Hello my name is %s\n",firstName);
console.printf("%s learnt something new in Java today!\n",firstName);
console.printf("First name: %s\n",firstName);
String lastName = console.readLine("Please enter your last name: ");
console.printf("Last name: %s\n" , lastName);
1 Answer
AJ Longstreet
Treehouse Project ReviewerLooks good. I think they're having issues with the site right now.
Ketaki Kshetramade
1,661 PointsKetaki Kshetramade
1,661 PointsThanks for your reply.The same code finally worked!