Free
CourseLearn Java: Loops and Arrays
Take your programming skills to the next level by learning about arrays and loops.
This course includes
This course includes
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary5 hoursProjects
4Prerequisites
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 quizzesCertificate of completion available with Plus or Pro
Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Projects in this course
- practice Project
Desert Island Playlist
Use Java's `ArrayList` methods to build and tweak your desert island music playlist. - practice Project
The Prime Directive
Your prime directive: Use Java loops to find every prime number in an array. - practice 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”.
Earn a certificate of completion
Show your network you've done the work by earning a certificate of completion for each course or path you finish.- Show proofReceive a certificate that demonstrates you've completed a course or path.
- Build a collectionThe more courses and paths you complete, the more certificates you collect.
- Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn Java: Loops and Arrays course ratings and reviews
114 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
Using Arrays to Group Data
Use arrays to keep track of your data in an orderly fashion.
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
Java for Programmers
Take this course meant for experienced programmers and learn Java, one of the world's most popular languages.Intermediate1 hour - Free course
Learn C#: Arrays and Loops
Learn how to organize data and automate repetitive tasks with arrays and loops.Beginner Friendly3 hours
Browse more topics
- Java1,236,235 learners enrolled
- Code foundations7,579,102 learners enrolled
- Computer science6,040,856 learners enrolled
- Web development5,077,870 learners enrolled
- Data science4,601,148 learners enrolled
- Python3,714,943 learners enrolled
- For business3,472,141 learners enrolled
- JavaScript2,915,298 learners enrolled
- Data analytics2,569,247 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.