CodeGym
Kampagne
Læring
Kurser
Opgaver
Undersøgelser & quizzer
Spil
Hjælp
Skema
Fællesskab
Brugere
Forum
Chat
Artikler
Succeshistorier
Aktivitet
Anmeldelser
Abonnementer
Lyst tema

Opgaver

  • Anmeldelser
  • Om os
Start
Begynd at lære
Begynd at lære nu
  • Alle opgaver
  • Amigo is very smart

    Java syntaks
    Niveau 0,Lektion 2
    Write a program that displays "Amigo is very smart". Example output: Amigo is very smart
    1
    Låst
  • I think being a programmer is cool

    Java syntaks
    Niveau 0,Lektion 3
    If you don't think that being a programmer is cool, then you must not have tried it yet. It's time to give it a try by writing your first program. Use a screen output command to display a phrase that a CodeGym graduate once scratched on the hull of his spaceship: "I think being a programmer is cool".
    1
    Låst
  • Kind words for the teacher

    Java syntaks
    Niveau 0,Lektion 4
    Every teacher is top-notch at the secret CodeGym center. Students notice this from the outset (level 0), but they rarely say it out loud. But even a kitten likes a kind word, right? The best compliment for anyone who teaches programming is a program. And if the program also prints the correct phrase, it would be priceless! Let's write a program with a compliment.
    2
    Låst
  • My young friend

    Java syntaks
    Niveau 0,Lektion 4
    In 3126, everyone knows about System.out.println() and uses it often. It's not just CodeGym students that begin to learn programming with this command. Even children do. Let's write a program that displays my friend's true birth year. He was born 8 years ago.
    2
    Låst
  • Declare variables

    Java syntaks
    Niveau 0,Lektion 4
    In Java, you can't simply start using a variable! Nobody will understand you. Compilers won't understand and they'll curse at you—you'll see! So if you decide to do something with a variable, you have to announce your intentions publicly! Let's write a program that declares int and String variables.
    1
    Låst
  • Nerd break

    Java syntaks
    Niveau 0,Lektion 7
    The super secret CodeGym training center has both standard lessons and entertaining lessons. But we don't have them just for the sake of having them. They will teach you loads about your future field of employment! It's time to relax a bit and watch a video about your future colleagues.
    1
    Låst
  • Bugs and features

    Java syntaks
    Niveau 0,Lektion 8
    Someday you'll be a real programmer, and you'll have your very own (almost) tester. Of course, this is still quite a ways off, but it's never too early to learn: for now, you can remember a phrase that will be useful when talking to your tester! Let's take the screen output command and zealously display: "It's not a bug - it's a feature".
    1
    Låst
  • No comments needed

    Java syntaks
    Niveau 0,Lektion 8
    Not all comments are equally helpful! Sometimes they appear in the code when a programmer isn't sure about some line and wants to return to it later. For example, in this task we have one unnecessary comment that is making the program work incorrectly. Uncomment one line to get the correct result!
    4
    Låst
  • 2 + 3 = 5

    Java syntaks
    Niveau 0,Lektion 8
    It's obvious that 2 + 3 = 5, right? As it turns out, this isn't always the case: our test program is incomprehensible, because some genius programmer added extra lines. Restore balance to the world: comment out some lines to display "2 plus 3 is equal to 5" on the screen.
    2
    Låst
  • We solemnly publish and declare these variables...

    Java syntaks
    Niveau 1,Lektion 3
    In Java, variables must be declared, i.e. we must allocate space for a specific variable type. Only after we have done this can we assign a specific value. It's nice that we can do this literally in one line. In this task, you have to declare several variables and immediately assign them values.
    1
    Låst
  • A variable on our screen

    Java syntaks
    Niveau 1,Lektion 3
    A beginning Java programmer first learns to declare (variables), assign (values ​​to variables), and display (variables and values). In this task, we will practice all three basic skills. Create a String variable, assign a value, and then display it.
    1
    Låst
  • One variable is not enough

    Java syntaks
    Niveau 1,Lektion 3
    When learning to program, some work may initially seem like unnecessary repetition. This is an illusion: skill is just repetition (with variations!) and can't be achieved in any other way. So, stop whining. Instead, let's declare variables one more time. This time we'll have three of them, and we'll assign them some values.
    1
    Låst
  • 1
  • 2
  • 3
  • ...
  • 111
Lær
  • Registrering
  • Java-kursus
  • Hjælp til opgaver
  • Priser
  • Spilprojekter
  • Java-syntaks
Fællesskab
  • Brugere
  • Artikler
  • Forum
  • Chat
  • Succeshistorier
  • Aktivitet
  • Affiliate-program
Virksomhed
  • Om os
  • Kontakter
  • Anmeldelser
  • Presse
  • CodeGym for EDU
  • FAQ
  • Support
CodeGymCodeGym er et onlinekursus til at lære Java-programmering fra bunden. Dette kursus er en perfekt måde for begyndere at mestre Java på. Det indeholder 1200+ opgaver med øjeblikkelig verifikation og en essentiel mængde teori om Java-grundbegreber. For at hjælpe dig til succes i uddannelse har vi implementeret en række motiverende funktioner: quizzer, kodeprojekter, indhold om effektiv læring og en karrierevej for Java-udviklere.
Følg os
Interface-sprog
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
"Programmører skabes, ikke fødes" © 2026 CodeGym
MastercardVisa
"Programmører skabes, ikke fødes" © 2026 CodeGym