ОТКРЫТЫЙ КУРС · 25 lessons

Java • Basics

Learn core Java: data types, input, decisions, loops, arrays, methods and objects.

Learning with progressNotes can be read without registration. An account is required to save the tasks.
Who this is for

For beginners interested in writing Java programs. No experience is required, though Python basics can help you compare familiar ideas.

How the course works

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

  1. IntroductionThe structure of a first Java program and output.
  2. Data and solutionsData, user input and choosing an action.
  3. Repetitions and arraysRepeating actions and storing multiple values.
  4. Your tools.Methods, classes and your own tools.
  5. 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.

01
MODULE 1 · УРОКИ 1–5

Introduction

Class, main and output — for loop

  1. Lesson 1. First greeting.Class, main and output · 12 мин →
  2. Lesson 2. A number with a nameint and addition · 12 мин →
  3. Lesson 3. Variable wordsString and text connection · 12 мин →
  4. Lesson 4. If not.if, else and comparison · 15 мин →
  5. Lesson 5. Repeat the action.for loop · 15 мин →
02
MODULE 2 · УРОКИ 6–10

Data and solutions

Type double — Scanner and input

  1. Lesson 6. Fractional numbersType double · 14 мин →
  2. Lesson 7. Yes or no.Type boolean · 14 мин →
  3. Lesson 8. Three wayselse if · 16 мин →
  4. Lesson 9. Two checks.Знаки && и || · 15 мин →
  5. Lesson 10. User responseScanner and input · 17 мин →
03
MODULE 3 · УРОКИ 11–15

Repetitions and arrays

while loop — Array and sum

  1. Lesson 11. As long as the condition iswhile loop · 14 мин →
  2. Lesson 12. row of numbersint array[edit] · 14 мин →
  3. Lesson 13. Take a number.Array index · 14 мин →
  4. Lesson 14. Go around the whole array.for-each loop · 14 мин →
  5. Lesson 15. Put the whole row together.Array and sum · 16 мин →
04
MODULE 4 · УРОКИ 16–20

Your tools.

Method without argument — Designer

  1. Lesson 16. Your command.Method without argument · 14 мин →
  2. Lesson 17. Give me the word.Argument of method · 14 мин →
  3. Lesson 18. The method answers.return · 14 мин →
  4. Lesson 19. Drawing and objectClass and object · 16 мин →
  5. Lesson 20. Name upon creationDesigner · 17 мин →
05
MODULE 5 · УРОКИ 21–25

Small programmes

Method of object — Array, loop, condition and method

  1. Lesson 21. The subject can act.Method of object · 14 мин →
  2. Lesson 22. Compare the wordsString.equals · 14 мин →
  3. Lesson 23. The list that growsArrayList · 16 мин →
  4. Lesson 24. If the input breakstry and catch · 17 мин →
  5. Lesson 25. Final project: pointsArray, loop, condition and method · 20 мин →