CodeGym
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Keyboard input

    JAVA 25 SELF
    Level 2, Lesson 5
    In this lecture, you will learn how to set up keyboard input in Java using the Scanner class. We’ll cover creating a Scanner object, reading strings, integers, and floating-point numbers, as well as the basic principles of working with input methods. Practical examples will help you quickly master interactive input in console programs.
    Available
  • CodeGym platform: how learning works

    JAVA 25 SELF
    Level 2, Lesson 6
    Get to know how the CodeGym platform is organized: how courses and the University are structured, what quests and modules are, how the system of levels, lectures, and tasks works, what “black matter” is for, where to look for help, and how to study on mobile. This lecture is your guide to the capabilities of CodeGym!
    Available
  • Artificial Intelligence: The New Technological Revolution

    JAVA 25 SELF
    Level 3, Lesson 0
    In this lecture, you will learn how artificial intelligence is reshaping the economy and the labor market, why the AI revolution is an opportunity for everyone, and how developers are becoming key players of the new era. Real-life examples, fresh industry news, and tips on how not to be left behind.
    Available
  • Conditional statement: if else

    JAVA 25 SELF
    Level 3, Lesson 1
    The conditional statement in Java allows you to execute different branches of code depending on whether the condition is true. In the lecture we cover if, else, the else if chain, blocks of statements, examples of comparing numbers and strings (the equals() method), as well as common nuances with braces and code readability.
    Available
  • Nested if, multi-level logic

    JAVA 25 SELF
    Level 3, Lesson 2
    How to build multi-level logic with nested if statements in Java: basic syntax and “matryoshka-style” logic, common pitfalls with the “dangling” else and why curly braces {} save you from bugs, plus how to combine else if inside nested conditions. At the end—a practical example: a discount calculator.
    Available
  • The boolean type and logical operations

    JAVA 25 SELF
    Level 3, Lesson 3
    In this lecture you will get acquainted with the boolean type in Java, learn how to use the values true and false, build expressions with comparison operators and logical operators &&, ||, !, go through truth tables, and typical nuances of writing conditions.
    Available
  • Operator precedence and parentheses in conditionals

    JAVA 25 SELF
    Level 3, Lesson 4
    In this lecture, we will examine operator precedence and associativity in Java: what is evaluated first, how chains of && and || are read, when parentheses are needed, and how to use them to avoid logic errors. We will show examples, a precedence table, and a flowchart for clarity.
    Available
  • Ternary operator in Java: concise conditionals and nuances

    JAVA 25 SELF
    Level 3, Lesson 5
    We unpack the ternary operator in Java: how it differs from if-else, how to use it for compact checks, what the type requirements for branches are, how to embed it into an application, and why you should be cautious with nested ternaries. All—with examples and practical tips.
    Available
  • Overview of CodeGym Courses

    JAVA 25 SELF
    Level 3, Lesson 6
    In this overview, you’ll learn how CodeGym’s self-paced and university programs are structured: how they differ, which learning formats are available, what’s included in the curricula, how student support works, and how to choose a suitable path to start a career in IT. Lots of practice, real reviews, and tips for beginners!
    Available
  • The Future Has Arrived

    JAVA 25 SELF
    Level 4, Lesson 0
    In this inspiring article, you will learn how technology has changed our lives in the 21st century—from smartphones and the internet to VR and online education. We will talk about the opportunities the modern world opens up, and why it is important not to miss your chance to seize them. Read a parable about choice and action—and take a step into the future today!
    Available
  • While Loop: Introduction and Practical Nuances

    JAVA 25 SELF
    Level 4, Lesson 1
    In this lecture, you will get acquainted with the while loop in Java: you will examine the syntax and the basic working pattern, see practical examples (counter, input until the required value), learn about nested and infinite loops, as well as common mistakes and ways to avoid them. After studying, you will confidently be able to use while in your programs.
    Available
  • for loop: introduction and nuances

    JAVA 25 SELF
    Level 4, Lesson 2
    In this lecture, you will explore the for loop in Java: its syntax and three components, comparison with while, practical examples (counters, countdown, step ≠ 1, multiple variables, “infinite” for) and tips for use. After the lesson, you will confidently choose and write loops in real code.
    Available
  • 1
  • 2
  • 3
  • 4
  • ...
  • 30
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym