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
  • Type conversion

    New Java Syntax
    Level 12, Lesson 3
    Java's strict typing does not allow data types to be changed. However, there is a way. It's called type casting. And we're not talking about an actor being locked into a particular role. In this context, we mean something else — using assignment to converting a variable of one type to a variable of another type. You'll learn how this happens in Java in this lesson.
    Available
  • Practice with integer type conversions

    New Java Syntax
    Level 12, Lesson 4
    The topic of type conversion must be approached responsibly: for many CodeGym students, it seems simple (still, it's Level 10!), but a flippant attitude here leads to numerous programming errors even for "grown up" programmers. So let's build a habit of approaching type conversion correctly. How? By doing tasks, of course.
    Available
  • Converting to String

    New Java Syntax
    Level 12, Lesson 5
    Despite Java's strict approach of typing, you can turn any data type into a String! Moreover, almost every type can be cast to the String type implicitly. This is immediately evident if we try to add two variables: a String and a "non-String". In this case, the "non-String" variable is converted to a String. It's convenient. Let's learn how to use it!
    Available
  • Reference type conversions

    New Java Syntax
    Level 12, Lesson 6
    When compatibles types are converted, the conversion may be narrowing or widening. Today, we'll use the Object class as we look at type conversions. Any reference type can be assigned to such a variable (type narrowing). But what if you need to perform a widening conversion? You'll learn in the lesson.
    Available
  • Final tasks

    New Java Syntax
    Level 12, Lesson 7
    The first quest is coming to an end! This crucial moment is the best time to repeat the material and reinforce your knowledge through practice. Accordingly, in this block we have prepared tasks on various topics, and even several problems that are more advanced. If something isn't clear, you can google it. Think and google, got it? Good luck!
    Available
  • A success story. How a math student became a programmer

    New Java Syntax
    Level 13, Lesson 0
    Does a math degree give an edge when learning programming? Everything depends on how much effort you put into related subjects. This is the story of Roman, who is from Kharkov. Today he is a senior Java developer. In mid-2015, he was a student working on a master's degree in applied...
    Available
  • ArrayList

    New Java Syntax
    Level 13, Lesson 1
    For a beginner, the ArrayList class is aerobatics! This topic usually comes much later, but here at the secret CodeGym center we decided not to drag out the Cat cat = new Cat() by the tail. So we created an overview of ArrayLists for the very first quest. Here we'll try to explain what kind of class ArrayList is and compare it with ordinary arrays.
    Available
  • Practice with ArrayList

    New Java Syntax
    Level 13, Lesson 2
    We're strictly adhering to the methodology adopted by the secret CodeGym training center: learn information and then practice using it. The now incomprehensible and complex phrase ArrayList<String> list = new ArrayList<>() will soon become instinctive and clear. As plain as «Hello, I'm a list of strings. You can call me 'list'».
    Available
  • What are generics?

    New Java Syntax
    Level 13, Lesson 3
    According to Wikipedia, a generic is a drug sold under an international non-proprietary name or under a proprietary name different from the brand name. In Java, generics… Uh...are in no way related to generic drugs. They're just types with a parameter.
    Available
  • Examples using ArrayList and generics

    New Java Syntax
    Level 13, Lesson 4
    You will be fully immersed in Java generics and ArrayList during your second quest at the secret CodeGym center. But right now we'll slow become accustomed to these complex but essential structures, analyzing code snippets with detailed explanations from your teachers.
    Available
  • Practice with lists

    New Java Syntax
    Level 13, Lesson 5
    According to research performed by the secret CodeGym center in academic year 3099, ArrayList appears to be the most difficult topic for the students working on the first quest. One of... So don't idle your time away: take the bull by the horns and start completing tasks. The more tasks you do, the clearer ArrayList will become.
    Available
  • Additional lessons for Level

    New Java Syntax
    Level 13, Lesson 6
    You already know a lot about primitive types, and in this level you got acquainted with their doppelgangers — the wrapper classes, and learned what autoboxing and unboxing are, how to compare wrapper types correctly, and how to do it incorrectly. You also took your array experience to the next level by getting to know...
    Available
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • ...
  • 61
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