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
  • Numbers and characters in Java

    JAVA 25 SELF
    Level 6, Lesson 1
    In this lecture you will get to grips with Java’s numeric and character types: what integral and floating-point types exist, why BigInteger and BigDecimal are useful, how to use suffixes and underscores in literals, what char is and how it relates to Unicode. Practical tables, examples, and tips — all in one place.
    Available
  • Introduction to floating-point numbers and the double type

    JAVA 25 SELF
    Level 6, Lesson 2
    In this Java lecture, you will understand what floating-point numbers are, how the float and double types differ, how to declare and initialize variables, read input via Scanner, format output using String.format, and also see common mistakes when mixing int and double in calculations.
    Available
  • Precision issues and special values

    JAVA 25 SELF
    Level 6, Lesson 3
    Why in Java the expression 0.1 + 0.2 does not give exactly 0.3, how to correctly compare floating-point numbers using a tolerance, which special values double has ( Infinity, NaN) and how to check them using Double.isInfinite and Double.isNaN. We break down typical mistakes and show practical examples.
    Available
  • Rounding and Formatting Numbers

    JAVA 25 SELF
    Level 6, Lesson 4
    In this lecture we will cover how to round and nicely display numbers in Java: the Math.round() method, the variants Math.floor(), Math.ceil(), Math.rint(), rounding to the required number of digits, formatting with DecimalFormat and String.format, as well as the difference between rounding and formatting and common mistakes. All with practical examples and tables.
    Available
  • Explicit and implicit type casting in Java

    JAVA 25 SELF
    Level 6, Lesson 5
    We break down type conversions in Java: automatic (widening) and explicit (narrowing) casts between int, double, long, byte, char, rules for mixed expressions, transitions between numbers and strings using Integer.parseInt and Integer.toString, and how a cast ( ( int )) differs from rounding via Math.round. With practical examples and typical mistakes.
    Available
  • IT Product Development

    JAVA 25 SELF
    Level 6, Lesson 6
    In this lecture, you will learn how the process of developing an IT product is organised: what roles exist on the team, how they interact, what Product Owner, UX Designer, DevOps, and developers do, and you will also get acquainted with the history of approaches to building modern digital services.
    Available
  • I’m the best

    JAVA 25 SELF
    Level 7, Lesson 0
    In this motivational article, you will learn why the path to success is unique for everyone, how to choose your own strategy without sacrificing important things, and why it’s important not only to work hard but also to work smart. This material will help you look at competition, hard work, and cultural attitudes from a new angle.
    Available
  • Introduction to Arrays

    JAVA 25 SELF
    Level 7, Lesson 1
    In this lecture, we’ll get acquainted with arrays in Java: what this container object is, how to create arrays of different types, access cells by index, understand how arrays are stored in memory, use the length property, and avoid common mistakes like going out of bounds. Everything is backed by code examples and clear illustrations.
    Available
  • Fundamental operations with one-dimensional arrays

    JAVA 25 SELF
    Level 7, Lesson 2
    In this lecture, we go over everyday operations with one-dimensional arrays in Java: arrays of type String, the value null and its pitfalls, quick initialization techniques, the for-each loop, modifying elements, basic computations (sum, maximum, minimum, average), input/output, and typical mistakes. All with clear code examples and explanations.
    Available
  • Two-dimensional arrays

    JAVA 25 SELF
    Level 7, Lesson 3
    In this lecture, we cover two-dimensional arrays in Java: the declaration syntax int[][], creation and initialization, accessing elements by indices [row][column], filling and printing tables. We’ll see why these are “arrays of arrays” and why this model is convenient in practice. With examples and illustrations.
    Available
  • Jagged arrays (Jagged Arrays)

    JAVA 25 SELF
    Level 7, Lesson 4
    In this lecture we dive into jagged arrays in Java: how they differ from “classic” two-dimensional ones, how to declare and initialize them ( int[][], new int[ 3][]), how to iterate using regular and for-each loops, and we create examples with student grades. Additionally, we will look at multidimensional arrays ( int[][][]) and common mistakes: ArrayIndexOutOfBoundsException, NullPointerException, and confusion with length.
    Available
  • Arrays class: sort, fill, copyOf, equals

    JAVA 25 SELF
    Level 7, Lesson 5
    Digging into Java’s utility class Arrays: how to quickly sort and fill arrays, copy whole arrays and ranges, correctly compare contents ( equals/ deepEquals), and pretty-print data ( toString/ deepToString). Lots of practical examples, nuances of half-open ranges, and common pitfalls.
    Available
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 30
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • 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