Free
CourseLearn Java: Loops and Arrays
Take your programming skills to the next level by learning about arrays and loops.
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary5 hoursCertificate of completion
Included with paid plansPrerequisites
2 coursesWe suggest you complete the following courses before you get started with Learn Java: Loops and Arrays:- Learn Java: Conditionals and Operators
- Learn Java: Classes, Methods, Inheritance, and Polymorphism
About this course
In this course, 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. Then dive into 2D arrays and how to manipulate them.
Syllabus
4 lessons • 4 projects • 4 quizzesProjects in this course
- Project
Desert Island Playlist
Use Java's `ArrayList` methods to build and tweak your desert island music playlist. - Project
The Prime Directive
Your prime directive: Use Java loops to find every prime number in an array. - Project
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”.
Learn Java: Loops and Arrays course ratings and reviews
52 ratings
- 5 stars
- 4 stars
- 3 stars
- 2 stars
- 1 star
- The progress I have made since starting to use codecademy is immense! I can study for short periods or long periods at my own convenience - mostly late in the evenings.ChrisCodecademy Learner @ USA
- I felt like I learned months in a week. I love how Codecademy uses learning by practice and gives great challenges to help the learner to understand a new concept and subject.RodrigoCodecademy Learner @ UK
- Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.John-AndrewCodecademy Learner @ USA
Our learners work at
Join over 50 million learners and start Learn Java: Loops and Arrays today!
Looking for something else?
Related resources
- Article
Java and the Command Line
A brief overview of running Java through the command line. - Article
Java Program Structure
Java programs have a specific structure. Let's take a closer look at the Hello World program — line by line! - Article
Java Style Guide
Let's look at a few Java standards before we jump into the syntax.
Related courses and paths
- Skill path
Study for the AP Computer Science A Exam (Java)
Master the core concepts covered in AP Computer Science A Exam and gain a solid understanding of programming and fluency in Java.Includes 8 CoursesWith CertificateBeginner Friendly19 hours - Free course
Learn Java
Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more.Beginner Friendly16 hours - Free course
Intro to Java
Get started with Java by learning about the basics of a Java program and variables!Beginner Friendly6 hours
Browse more topics
- Java1,737,588 learners enrolled
- Code Foundations13,344,665 learners enrolled
- For Business9,833,762 learners enrolled
- Computer Science7,572,968 learners enrolled
- Web Development6,968,815 learners enrolled
- Data Science5,884,053 learners enrolled
- Python4,612,629 learners enrolled
- Cloud Computing4,177,530 learners enrolled
- Data Analytics3,986,407 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.