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 trialdeandede
1,433 PointsThis Is how I created my Proto "ABOUT YOU" Hope this will help most of you.
import java.io.Console;
public class TreeStory {
public static void main(String[] args) {
Console console = System.console();
console.printf ("ABOUT YOU \n---------\n");
String name = console.readLine ("What Is Your Name: ");
String country = console.readLine ("What Is Your Country: ");
String food = console.readLine ("What Is Your Favorite Food ");
String hobby = console.readLine ("What Is Your Hobby: ");
String ambition = console.readLine ("What Is Your Ambition ");
console.printf("\nHi there I am %s.\nIam from %s.\nMy favorite food is %s.\nMy Hobby would be %s.\nFurthermore my main ambition is to be a %s.\n", name, country, food, hobby, ambition);
}
}
Craig Dennis
Treehouse TeacherCraig Dennis
Treehouse TeacherI added some color coding for you by prefixing the coding block with 3 back ticks followed by java
And at the bottom I wrote ```.
If you go into edit you can see what I mean!
Thanks for your example!