Java: Loops and Arrays
In this course, you’ll learn about two core programming topics: Arrays and loops!
You’ll learn how to store multiple pieces of data in a single variable using Arrays and ArrayLists. Then, you’ll discover how to easily create repeating code using loops. Finally, challenge yourself by going through several code challenges that put your programming skills to the test!
Codecademy courses have been taken by employees at
- 1Learn how to store multiple pieces of data in a single variable using Arrays and ArrayLists.
- 2Learn how to create loops to make a part of your code repeat! Loops are especially useful for traversing Arrays.
- 3Take your understanding of arrays and loops to the next dimension! Learn how to create and use two-dimensional arrays.
- 4Test yourself with a variety of coding challenges involving Arrays, Strings, loops, and more!
What you'll create
Portfolio projects that showcase your new skills
Desert Island Playlist
Use Java's `ArrayList` methods to build and tweak your desert island music playlist.
Fizz Buzz
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
The Prime Directive
Your prime directive: Use Java loops to find every prime number in an array.
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory

— Madelyn, Pinterest
I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.
Course Description
Take your programming skills to the next level by learning about arrays and loops.
Details
Earn a certificate of completion
8 hours to complete in total
Beginner
Learn how to store multiple pieces of data in a single variable using Arrays and ArrayLists.
1 lesson, 1 quiz, 2 projects
1 lesson, 1 quiz, 1 project
1 informational, 5 articles