Java • Basics
Learn core Java: data types, input, decisions, loops, arrays, methods and objects.
For beginners interested in writing Java programs. No experience is required, though Python basics can help you compare familiar ideas.
25 lessons in five modules. Each lesson includes an example, guided classwork and independent homework. The final exam checks topics from the whole course.
What you will learn
- Understand a Main class and how a program starts in main.
- Use types, Scanner, decisions, loops and arrays.
- Split a task into methods and create simple classes and objects.
- Read error messages and build a small console program.
Module path
- IntroductionThe structure of a first Java program and output.
- Data and solutionsData, user input and choosing an action.
- Repetitions and arraysRepeating actions and storing multiple values.
- Your tools.Methods, classes and your own tools.
- Small programmesBuilding small programs and reviewing core topics.
Your result
Finish with a small independent program using what you learned and an exam across all five modules. Your progress and grade are saved to your account; you may retake the exam.
What comes next
This is console Java at foundation level. Large application builds, graphical interfaces, Spring and server development are outside this course.
Introduction
Class, main and output — for loop
Data and solutions
Type double — Scanner and input
Repetitions and arrays
while loop — Array and sum
Your tools.
Method without argument — Designer
Small programmes
Method of object — Array, loop, condition and method