← Learn to Code — Python, Java, C, SQL & Web · 编程入门 — Python, Java, C, SQL & Web
Java Practice · Java 练习
Coding challenges from 1★ to 5★. · 1★ 到 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. · 每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。
Lessons in this course · 本课程中的课程
No lessons match. Clear the search or choose another filter. · 没有匹配的课时。请清空搜索或选择其他筛选条件。
- 01 Print a word · 打印一个单词 1 required task · 1 个必做任务 · ★
- 02 Print another word · 再打印一个单词 1 required task · 1 个必做任务 · ★
- 03 Print a sentence · 打印一句话 1 required task · 1 个必做任务 · ★
- 04 Print with a ! · 用感叹号打印 1 required task · 1 个必做任务 · ★
- 05 Print two lines · 打印两行 1 required task · 1 个必做任务 · ★
- 06 Print a number · 打印一个数字 1 required task · 1 个必做任务 · ★
- 07 Add two numbers · 两数相加 1 required task · 1 个必做任务 · ★
- 08 Subtract · 减法 1 required task · 1 个必做任务 · ★
- 09 Multiply · 乘法 1 required task · 1 个必做任务 · ★
- 10 Divide · 除法 1 required task · 1 个必做任务 · ★
- 11 Remainder · 求余数 1 required task · 1 个必做任务 · ★
- 12 A number variable · 数字变量 1 required task · 1 个必做任务 · ★
- 13 A text variable · 文字变量 1 required task · 1 个必做任务 · ★
- 14 Add two variables · 变量相加 1 required task · 1 个必做任务 · ★
- 15 Your first method · 你的第一个方法 1 required task · 1 个必做任务 · ★
- 16 Is it positive? · 是正数吗? 1 required task · 1 个必做任务 · ★
- 17 Cube a number · 求立方 1 required task · 1 个必做任务 · ★
- 18 The smaller one · 较小的那个 1 required task · 1 个必做任务 · ★
- 19 Square a number · 求平方 1 required task · 1 个必做任务 · ★
- 20 Largest of three · 三者中的最大值 1 required task · 1 个必做任务 · ★
- 21 Count the vowels · 数元音字母 1 required task · 1 个必做任务 · ★★
- 22 Reverse the word order · 反转单词顺序 1 required task · 1 个必做任务 · ★★
- 23 Palindrome check · 回文判断 1 required task · 1 个必做任务 · ★★★
- 24 Running sum · 前缀和 1 required task · 1 个必做任务 · ★★★
- 25 Most frequent character · 出现最多的字符 1 required task · 1 个必做任务 · ★★★
- 26 Binary search · 二分查找 1 required task · 1 个必做任务 · ★★★
- 27 Factorial (mind the size) · 阶乘(注意大小) 1 required task · 1 个必做任务 · ★★★★
- 28 Count primes below n · 数小于 n 的质数 1 required task · 1 个必做任务 · ★★★★
- 29 Roman numerals · 罗马数字 1 required task · 1 个必做任务 · ★★★★★
- 30 Longest common prefix · 最长公共前缀 1 required task · 1 个必做任务 · ★★★★★