Skip to content · ⁨Lompat ke konten⁩

← Learn to Code — Python, Java, C, SQL & Web · ⁨Belajar Memrogram — Python, Java, C, SQL & Web⁩

Java Practice · ⁨Praktik Java⁩

Coding challenges from 1★ to 5★. · ⁨Cabaran pengaturcaraan dari 1★ hingga 5★.⁩

java 30 Lessons · ⁨Pelajaran⁩

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with translated notes paired with English. · ⁨Setiap pelajaran berjalan di browser Anda — tulis kode nyata, tekan Jalankan, dan tugas memeriksa dirinya sendiri. Gratis, tidak perlu akun, dengan catatan terjemahan yang dipasangkan dengan bahasa Inggris.⁩

Start the course · ⁨Mulai kursus⁩

Lessons in this course · ⁨Pelajaran dalam kursus ini⁩

  1. 01 Print a word · ⁨Cetak satu perkataan⁩ 1 required task · ★
  2. 02 Print another word · ⁨Cetak satu perkataan lagi⁩ 1 required task · ★
  3. 03 Print a sentence · ⁨Cetak satu ayat⁩ 1 required task · ★
  4. 04 Print with a ! · ⁨Cetak dengan !⁩ 1 required task · ★
  5. 05 Print two lines · ⁨Cetak dua baris⁩ 1 required task · ★
  6. 06 Print a number · ⁨Cetak satu nombor⁩ 1 required task · ★
  7. 07 Add two numbers · ⁨Tambah dua nombor⁩ 1 required task · ★
  8. 08 Subtract · ⁨Tolak⁩ 1 required task · ★
  9. 09 Multiply · ⁨Darab⁩ 1 required task · ★
  10. 10 Divide · ⁨Bagi⁩ 1 required task · ★
  11. 11 Remainder · ⁨Baki⁩ 1 required task · ★
  12. 12 A number variable · ⁨Pembolehubah nombor⁩ 1 required task · ★
  13. 13 A text variable · ⁨Variabel teks⁩ 1 required task · ★
  14. 14 Add two variables · ⁨Tambah dua pembolehubah⁩ 1 required task · ★
  15. 15 Your first method · ⁨Metode pertamamu⁩ 1 required task · ★
  16. 16 Is it positive? · ⁨Adakah ia positif?⁩ 1 required task · ★
  17. 17 Cube a number · ⁨Kuasa tiga satu nombor⁩ 1 required task · ★
  18. 18 The smaller one · ⁨Yang lebih kecil⁩ 1 required task · ★
  19. 19 Square a number · ⁨Kuasa dua satu nombor⁩ 1 required task · ★
  20. 20 Largest of three · ⁨Terbesar bagi tiga nombor⁩ 1 required task · ★
  21. 21 Count the vowels · ⁨Hitung huruf vokal⁩ 1 required task · ★★
  22. 22 Reverse the word order · ⁨Balik urutan kata⁩ 1 required task · ★★
  23. 23 Palindrome check · ⁨Pengecekan palindrom⁩ 1 required task · ★★★
  24. 24 Running sum · ⁨Jumlah kumulatif⁩ 1 required task · ★★★
  25. 25 Most frequent character · ⁨Karakter paling sering muncul⁩ 1 required task · ★★★
  26. 26 Binary search · ⁨Pencarian biner⁩ 1 required task · ★★★
  27. 27 Factorial (mind the size) · ⁨Faktorial (perhatikan ukurannya)⁩ 1 required task · ★★★★
  28. 28 Count primes below n · ⁨Hitung bilangan prima di bawah n⁩ 1 required task · ★★★★
  29. 29 Roman numerals · ⁨Angka Romawi⁩ 1 required task · ★★★★★
  30. 30 Longest common prefix · ⁨Awalan umum terpanjang⁩ 1 required task · ★★★★★

Language reference · ⁨Referensi Bahasa⁩

/know/reference/java

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP