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 Loops!
You have completed Java Loops!
Preview
Let’s get familiar with what loops are and how they can be used.
This video doesn't have any notes.
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
Hi everyone and welcome to Java Loops.
0:00
And no, it's not a breakfast cereal.
0:03
So what exactly is a loop?
0:05
In programming, a loop is a way to repeat
a set of instructions multiple times.
0:07
Instead of writing the same code
over and over, we use loops to make
0:12
our code
shorter, clearer, and more powerful.
0:16
You might use a loop
when you want to do something many times,
0:19
printing numbers from 1 to 10,
going through all the items in a list,
0:23
or asking a user for input
until they give a valid answer.
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