Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

← Learn to Code — Python, Java, C, SQL & Web · ⁨เรียนรู้การเขียนโค้ด — Python, Java, C, SQL & Web⁩

Java Practice · ⁨ฝึก Java⁩

Coding challenges from 1★ to 5★.

java 30 Lessons · ⁨บทเรียน⁩

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. · ⁨ทุกบทเรียนทำงานบนเบราว์เซอร์ของคุณ — เขียนโค้ดจริง กด Run และงานจะตรวจสอบตัวเองอัตโนมัติ ฟรี ไม่ต้องสมัครบัญชี พร้อมบันทึกคำแปลคู่กับภาษาอังกฤษ⁩

Start the course · ⁨เริ่มหลักสูตร⁩

Lessons in this course · ⁨บทเรียนในหลักสูตรนี้⁩

  1. 01 Print a word · ⁨พิมพ์คำ⁩ 1 required task · ★
  2. 02 Print another word · ⁨พิมพ์อีกคำหนึ่ง⁩ 1 required task · ★
  3. 03 Print a sentence · ⁨พิมพ์ประโยค⁩ 1 required task · ★
  4. 04 Print with a ! · ⁨พิมพ์ด้วย !⁩ 1 required task · ★
  5. 05 Print two lines · ⁨พิมพ์สองบรรทัด⁩ 1 required task · ★
  6. 06 Print a number · ⁨พิมพ์ตัวเลข⁩ 1 required task · ★
  7. 07 Add two numbers · ⁨บวกสองตัวเลข⁩ 1 required task · ★
  8. 08 Subtract · ⁨ลบ⁩ 1 required task · ★
  9. 09 Multiply · ⁨คูณ⁩ 1 required task · ★
  10. 10 Divide · ⁨หาร⁩ 1 required task · ★
  11. 11 Remainder · ⁨เศษเหลือ⁩ 1 required task · ★
  12. 12 A number variable · ⁨ตัวแปรตัวเลข⁩ 1 required task · ★
  13. 13 A text variable · ⁨ตัวแปรข้อความ⁩ 1 required task · ★
  14. 14 Add two variables · ⁨บวกตัวแปรสองตัว⁩ 1 required task · ★
  15. 15 Your first method · ⁨วิธีแรกของคุณ⁩ 1 required task · ★
  16. 16 Is it positive? · ⁨มันเป็นบวกหรือไม่?⁩ 1 required task · ★
  17. 17 Cube a number · ⁨ยกกำลังสามตัวเลข⁩ 1 required task · ★
  18. 18 The smaller one · ⁨ตัวที่น้อยกว่า⁩ 1 required task · ★
  19. 19 Square a number · ⁨ยกกำลังสองตัวเลข⁩ 1 required task · ★
  20. 20 Largest of three · ⁨ตัวมากที่สุดในสามตัว⁩ 1 required task · ★
  21. 21 Count the vowels · ⁨นับสระ⁩ 1 required task · ★★
  22. 22 Reverse the word order · ⁨กลับลำดับคำ⁩ 1 required task · ★★
  23. 23 Palindrome check · ⁨ตรวจสอบพาลินโดรม⁩ 1 required task · ★★★
  24. 24 Running sum · ⁨ผลรวมสะสม⁩ 1 required task · ★★★
  25. 25 Most frequent character · ⁨ตัวอักษรที่พบบ่อยที่สุด⁩ 1 required task · ★★★
  26. 26 Binary search · ⁨การค้นหาแบบทวิภาคี⁩ 1 required task · ★★★
  27. 27 Factorial (mind the size) · ⁨แฟกทอเรียล (ระวังขนาด)⁩ 1 required task · ★★★★
  28. 28 Count primes below n · ⁨นับจำนวนจำนวนเฉพาะต่ำกว่า n⁩ 1 required task · ★★★★
  29. 29 Roman numerals · ⁨เลขโรมัน⁩ 1 required task · ★★★★★
  30. 30 Longest common prefix · ⁨พรีฟิกที่ยาวที่สุดร่วมกัน⁩ 1 required task · ★★★★★

Language reference · ⁨อ้างอิงภาษา⁩

/know/reference/java

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP