Learning Java

A slow-paced Java starter course that helps learners run programs, read Java code, use variables, strings, input, conditionals, loops, arrays, and build a profile quiz.

Learning Java

Welcome to Learning Java.

This course is a beginner-friendly introduction to Java programming. Java is a little more structured than some languages, so the lessons move slowly and explain new words as they appear.

Each module has two main files:

  • README.md: the lesson instructions
  • a source file you will run and edit

The best way to learn is simple:

  1. Open the module folder.
  2. Read the README.md.
  3. Open the source file.
  4. Run the code.
  5. Change something small.
  6. Run it again and notice what changed.

Table of Contents

  1. What you will learn
  2. How to use this course
  3. How to run a module
  4. Modules overview
  5. Final project
  6. Tips for learning
  7. Wrap up

What you will learn

By the end of this course, you will have practiced:

  • running your first Java program
  • reading the shape of Java code
  • showing messages in the console
  • storing values in variables
  • working with text
  • using numbers and simple math
  • asking the user questions
  • making decisions
  • repeating code and storing groups of values
  • building a friendly profile quiz
  • building a small final project

That is a real foundation.

You will not know every part yet, and that is completely fine.

How to use this course

Start with Module 1 and go in order.

Each module builds on the one before it. Try not to rush. It is better to understand a small piece well than to fly through everything and feel lost.

How to run a module

Open the terminal from the learning-java folder.

For example:

javac 01_welcome_to_java/Main.java
java -cp 01_welcome_to_java Main

For another module, change the folder name in the command.

Modules overview

Module 1: Welcome to Java

You will practice running your first Java program.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 2: Java Syntax

You will practice reading the shape of Java code.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 3: Printing and Output

You will practice showing messages in the console.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 4: Variables

You will practice storing values in variables.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 5: Strings

You will practice working with text.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 6: Numbers and Math

You will practice using numbers and simple math.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 7: Input

You will practice asking the user questions.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 8: Conditionals

You will practice making decisions.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Module 9: Loops and Arrays

You will practice repeating code and storing groups of values.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Final Project: Profile Quiz

You will practice building a friendly profile quiz.

This module stays small on purpose. Run it, read it, change one thing, and run it again.

Final project

Final Project: Profile Quiz

The final project is not about being perfect.

It is about putting the pieces together and seeing that you can build something real.

Tips for learning

Run the code often.

Change one thing at a time.

If an error appears, do not panic. Errors are part of learning. Check the line number, read the message, and compare your code to the example.

Wrap up

This course starts small on purpose. By the end, you will have built a real starter project using the ideas you practiced along the way.

Project details
Java

Environment

Java

Java workspace with OpenJDK 17, Maven, Gradle, Checkstyle, Git, curl, jq, and unzip.

Availability

Always open

Extension Marketplace

Enabled

Starter Files

Included in workspace

Anoch Jeyakanthan

Created By

Anoch Jeyakanthan