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 will learn what a variable is, and when they should be used. We will modify our introduction to dynamically use a String variable.
Additional Resources
- Java Class Formatter
- Other escape sequences
- More data types for the impatient
- Statically and strongly typed described (the first paragraph)
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
Now we're going to learn two new concepts,
strings and variables.
0:00
In Java, when you put letters
or characters inside double quotes,
0:01
you create what's called a string.
0:05
A good way to imagine a string is a banner
you might hang at a party.
0:09
It's a sequence of individual characters
strung together.
0:12
Strings are how we handle text
in programming, and you'll use them a lot.
0:17
Because they are so common, strings
are one of the basic data types in Java.
0:21
A variable is a way to store data
in a named location
0:27
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