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 trialSilvio Deda
Android Development Techdegree Student 319 Pointsi do not understand
hemm i wrong :(
String firstName = console.readLine ("First name ? ");
console.printf("First Name ", firstName);
console.printf("%s jam gay \n" , firstName);
String lastName = console.readLine ("Last name ");
console.printf ("%s jam lezbike \n" , lastName);
2 Answers
Rune Andreas Nielsen
5,354 PointsHi Silvio, i did it this way. I think you're doing a lot more than the challenge asks you to do.
You just need to read the name, and lastname and print them out while using '%s'.
String firstName = console.readLine();
String lastName = console.readLine();
console.printf("First name: %s ", firstName);
console.printf("Last name: %s ", lastName);
Yahya Saadi
4,277 PointsString firstName = console.readLine("Yahya");
String lastName = console.readLine("Saadi");
console.printf("First Name: %s", firstName);
console.printf("Last Name: %s", lastName);
Rune Andreas Nielsen
5,354 PointsYou might want to remove the string inside of the console.readLine();
Silvio Deda
Android Development Techdegree Student 319 PointsSilvio Deda
Android Development Techdegree Student 319 Pointsthank you :)