Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Java Basics!
You have completed Java Basics!
Preview
In this video, we go over the specifications for the program and flesh out our prototype.
Boilerplate
// __name__ is a __adjective__ __noun__. They are always __adverb__ __verb__.
String name = console.readLine("Enter a name: ");
String adjective = console.readLine("Enter an adjective: ");
String noun = console.readLine("Enter a noun: ");
String adverb = console.readLine("Enter an adverb: ");
String verb = console.readLine("Enter a verb ending with -ing: ");
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
If you want to, you can pause the video
now, head over
0:00
to your workspace,
and try coding this yourself before I do.
0:03
Ready? Let's go.
0:06
Alrighty,
first things first, let's clear out
0:07
the old code we've been working on here.
0:11
Okay, and let's type a comment
for what we want to build.
0:16
We'll say name is a,
0:21
or an, adjective, noun.
0:25
They are always adverb, verb.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up