Java: Algorithms

Learn the basics of recursion and how to implement and analyze important algorithms in Java.

4.38 out of 5 stars
12,853 learners enrolled
  • Skill level

  • Time to complete

    Approx. 7 hours
  • Certificate of completion

    Included with paid plans
  • Prerequisites

    1 course

About this course

This course is all about algorithms! We’ll start by looking into the concept of recursion — what does it mean for a method to call itself? Once we wrap our minds around this tricky concept, we’ll look at how to use recursion to solve some problems.

Next, we’ll start to think about how we can evaluate the effectiveness of our algorithms. There are so many ways to solve a single problem — how do you know if your solution is a good one? What does it even mean for one solution to be “better” than the other?

Finally, we’ll look at some of the most common sorting and searching algorithms. If you’re looking to sort a list of numbers, how would you do that? What about if you were trying to find a single word in the dictionary? We’ll write a few algorithms to solve these problems.


8 lessons • 6 quizzes
The platform

Hands-on learning

Don’t just watch or read about someone else coding — write your own code live in our online, interactive platform. You’ll even get AI-driven recommendations on what you need to review to help keep you on track.
Animated demonstration of running code in Codecademy's learning environment

Java: Algorithms course ratings and reviews

4.38 out of 5 stars
92 ratings
  1. 5 stars
  2. 4 stars
  3. 3 stars
  4. 2 stars
  5. 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.
    Codecademy 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.
    Codecademy Learner @ UK
  • Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.
    Codecademy Learner @ USA

Our learners work at

  • Google Logo
  • Meta Logo
  • Apple Logo
  • EA Logo
  • Amazon Logo
  • IBM Logo
  • Microsoft Logo
  • Reddit Logo
  • Spotify Logo
  • Uber Logo
  • YouTube Logo
  • Instagram Logo

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.

Join over 50 million learners and start Java: Algorithms today!