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
  • CodeGym — Learning to program in Java

    New Java Syntax
    Level 4, Lesson 0
    How about a whole new approach to learning programming and education in general? Unlike anything you've seen before. How about a learning process that has an objective, a way to get there, and produces results? If that's what you need, then you've come to the right place — an online course to learn how to program...
    Available
  • CodeGym community

    New Java Syntax
    Level 4, Lesson 1
    CodeGym forum But learning isn't the only thing we do on CodeGym! We also rub shoulders with other programmers: beginners as well as folks who are already established. Recently, CodeGym became not just a website for learning Java, but also the Runet's largest community of Java developers.  As the size of our Java community expands...
    Available
  • CodeGym mobile app

    New Java Syntax
    Level 4, Lesson 2
    The problem with all mobile apps CodeGym students have been asking for a mobile app for a long time. And we understand why — in today's world, a phone is more readily available than a desktop computer with IntelliJ IDEA installed. It is much easier to set aside 15 minutes several times during the day than it is to sit down to...
    Available
  • Loops

    New Java Syntax
    Level 4, Lesson 3
    What if you need to repeat the same action several times as long as a certain condition is true? For example, here's a condition: "I will study at the secret CodeGym center while my level is <= 40". Or "while there is at least one cookie in the bag, eat it". The loop will stop only when the bag is empty. The Java while loop makes for an interesting lesson.
    Available
  • Tasks about loops

    New Java Syntax
    Level 4, Lesson 4
    When you know loops, solving programming problems is easier, more interesting, and more natural! In fact, loops (repeated actions) form the basis of any automation and are the essence of programming. That's what Mark Zuckerberg thinks. Why not listen to him and master this important tool? In this lesson, we'll complete tasks using the while loop.
    Available
  • For loop

    New Java Syntax
    Level 4, Lesson 5
    The nature of a loop is in its very name: repetition. In Java, there are several constructs for loops. Each of them is useful. In this lesson, we'll talk about the for loop. Programmers love and respect it for its compactness, convenience and...beauty, I guess. This loop is able to change code. See for yourself!
    Available
  • For loop in practice

    New Java Syntax
    Level 4, Lesson 6
    There's no longer any point in hiding this terrible secret from you: From now until the end of your programming life, you'll have to use the for loop. You can't escape this. Take my word for it. And if that's the case, why not learn to use this ubiquitous tool like a virtuoso? Starting right now: We have 5 tasks about loops.
    Available
  • Interrupting a loop

    New Java Syntax
    Level 4, Lesson 7
    "Hi Amigo!" "Hi Ellie." "You've already studied loops, and that's cool." "I agree! Now I totally don't know how to live without them." "Sometimes you can do without them... But more often you will need them. Today we're going to talk about the situation when you need to get out of a loop ahead of schedule." "Do you mean, when the condition...
    Available
  • Additional lessons for Level

    New Java Syntax
    Level 4, Lesson 8
    If the topics we've covered aren't clear... Repeat them over and over again until they are :) But we hope that the lessons in this level have given you a good understanding of how to use loops in Java. You also learned what real numbers are and about some of the nuances of working with them. To sort out all the new information in your brain...
    Available
  • How do hard drives work?

    New Java Syntax
    Level 4, Lesson 9
    Can you believe that modern hard drives hold 300,000,000 times more information than IBM’s first device from 1957? Nowadays they can easily hold more information than any library, and their capacity is still increasing. But how do they store such huge amounts of data? In this TED-Ed video, Kanawat Senanan explains how these powerful tools were created.
    Available
  • Tasks with and without asterisks

    New Java Syntax
    Level 4, Lesson 10
    Complete 4 tasks and get a pass to Level 5... Actually, that's not quite right. But in any case, the more tasks you complete, the more rapid and obvious will be your progress. Your attention, please: These tasks involve a solution in IntelliJ IDEA. Data input, branching, methods, and loops — we're putting into practice what we've already covered.
    Available
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym