Programming & Software course

Java Programming Basics

Write, test, and debug foundational Java programs using control structures, methods, and arrays.

14 lessonsabout 2 hours in allBeginnerFree

Lessons of 5 to 10 minutes, taught by Milo, your AI tutor. In your browser now; phone apps soon.

By the end you can
  • Write small Java programs using variables, arithmetic, conditionals, loops, methods, strings, and arrays
  • Plan simple solutions, use built-in math operations, and identify whether an error occurs during compilation or execution

What you'll learn, lesson by lesson

  1. 1How a Java Program RunsWrite a program that prints a greeting and your name on two lines.
  2. 2Variables and TypesDeclare a variable of the right type for an age, a price and a yes/no answer.
  3. 3Arithmetic and Type ConversionPredict the results of 7 / 2, 7 % 2 and 7.0 / 2.
  4. That's a preview. 11 more lessons follow.

    Take all 14 lessons free in the Milo app, with Milo teaching each one.

    Start this course free
  5. 4If Statements and Boolean Logic
  6. 5While Loops
  7. 6For Loops and Nesting
  8. 7Finding and Fixing Bugs
  9. 8Plan Before You Code
  10. 9Writing Your Own Methods
  11. 10Libraries and Separate Jobs
  12. 11Strings and Positions
  13. 12Searching Text with Loops
  14. 13Arrays
  15. 14Two-Dimensional Arrays
Inside the app

Not a video. A tutor who teaches you.

Milo explains each idea of Java Programming Basics out loud and on the blackboard, checks you understood, and coaches you when you slip. Lessons take 5 to 10 minutes.

Start free
A Milo lesson: Milo explains an idea and draws it on the blackboard
A quick check in a Milo lesson, answered correctly, with Milo's explanation

More in Programming & Software

Free to learn

This course is free. So is Milo's help planning it.

Every course in Milo's library, your growth plan and Milo's weekly check-ins cost nothing. Members, from $5 a month, also get lessons written just for them.

Can I really start for free?
Yes. No card needed.
Can I cancel a membership any time?
Yes, from your account. You keep it until the end of the month you paid for.
Where does it work?
In any browser on a phone, tablet or computer. Phone apps are on the way.