CodeGym
Promosi
Pembelajaran
Kursus
Tugasan
Tinjauan & Kuiz
Permainan
Bantuan
Jadual
Komuniti
Users
Forum
Sembang
Artikel
Kisah kejayaan
Aktiviti
Ulasan
Langganan
Tema cerah

Tugasan

  • Ulasan
  • Tentang kami
Mula
Mula belajar
Start learning now
  • Semua tugasan
  • Amigo is very smart

    Sintaks Java
    Tahap 0,Pelajaran 2
    Write a program that displays "Amigo is very smart". Example output: Amigo is very smart
    1
    Terkunci
  • I think being a programmer is cool

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • Kind words for the teacher

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • My young friend

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • Declare variables

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • Nerd break

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • Bugs and features

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • No comments needed

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • 2 + 3 = 5

    Sintaks Java
    Tahap 0,Pelajaran 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
    Terkunci
  • We solemnly publish and declare these variables...

    Sintaks Java
    Tahap 1,Pelajaran 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
    Terkunci
  • A variable on our screen

    Sintaks Java
    Tahap 1,Pelajaran 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
    Terkunci
  • One variable is not enough

    Sintaks Java
    Tahap 1,Pelajaran 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
    Terkunci
  • 1
  • 2
  • 3
  • ...
  • 111
Belajar
  • Pendaftaran
  • Kursus Java
  • Bantuan dengan Tugasan
  • Harga
  • Projek Permainan
  • Sintaks Java
Komuniti
  • Pengguna
  • Artikel
  • Forum
  • Sembang
  • Kisah Kejayaan
  • Aktiviti
  • Program Afiliasi
Syarikat
  • Tentang Kami
  • Hubungi
  • Ulasan
  • Bilik Akhbar
  • CodeGym untuk EDU
  • Soalan Lazim
  • Sokongan
CodeGymCodeGym ialah kursus dalam talian untuk belajar pengaturcaraan Java dari asas. Kursus ini adalah cara yang sempurna untuk menguasai Java bagi pemula. Ia mengandungi 1200+ tugasan dengan pengesahan segera dan skop asas teori Java yang penting. Untuk membantu anda berjaya dalam pembelajaran, kami telah melaksanakan beberapa ciri motivasi: kuiz, projek pengkodan, kandungan tentang pembelajaran yang berkesan, dan kerjaya pembangun Java.
Ikuti kami
Bahasa antara muka
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
"Pengaturcara Dibentuk, Bukan Dilahirkan" © 2026 CodeGym
MastercardVisa
"Pengaturcara Dibentuk, Bukan Dilahirkan" © 2026 CodeGym