Skip to content

← Learn to Code — Python, Java, C, SQL & Web · ⁨编程入门 — Python, Java, C, SQL & Web⁩

Java for AP CS A · ⁨AP 计算机科学 A Java⁩

Java programming for the AP Computer Science A exam. · ⁨面向 AP 计算机科学 A 考试的 Java 编程。⁩

java 19 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. · ⁨每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。⁩

Start the course · ⁨开始课程⁩

Lessons in this course · ⁨本课程中的课程⁩

  1. history A short history of Java · ⁨Java 简史⁩ Reading and resources · ⁨阅读与资源⁩
  2. usage What Java is used for · ⁨Java 用来做什么⁩ Reading and resources · ⁨阅读与资源⁩
  3. resources Where to learn more · ⁨更多学习资源⁩ Reading and resources · ⁨阅读与资源⁩
  4. setup Set up your computer · ⁨设置你的电脑⁩ Reading and resources · ⁨阅读与资源⁩
  5. 01 Java basics: classes, main, and output · ⁨Java 基础:类、main 和输出⁩ 2 required tasks · ⁨2 个必做任务⁩ Video · ⁨视频⁩
  6. 02 Using objects: String, Math, and wrappers · ⁨使用对象:String、Math 和包装类⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  7. 03 Booleans and selection: if/else and logic · ⁨布尔值与选择:if/else 和逻辑⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  8. 04 Loops: while, for, and accumulation · ⁨循环:while、for 和累加⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  9. 05 Strings and nested loops · ⁨字符串与嵌套循环⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  10. 06 Writing a class: fields, constructor, methods · ⁨编写类:字段、构造方法和方法⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  11. 07 Encapsulation: private fields, getters, setters · ⁨封装:私有字段、getter 和 setter⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  12. 08 1-D arrays: store, index, and traverse · ⁨一维数组:存储、下标和遍历⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  13. 09 Array algorithms: max, count, search, average · ⁨数组算法:最大值、计数、查找、平均值⁩ 4 required tasks · ⁨4 个必做任务⁩ Video · ⁨视频⁩
  14. 10 ArrayList: a list that grows · ⁨ArrayList:可以增长的列表⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  15. 11 ArrayList algorithms: filter and the remove bug · ⁨ArrayList 算法:筛选与删除的 bug⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  16. 12 2-D arrays: working with a grid · ⁨二维数组:操作网格⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  17. 13 Searching: linear and binary · ⁨查找:线性查找与二分查找⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  18. 14 Sorting: selection and insertion sort · ⁨排序:选择排序与插入排序⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  19. 15 Recursion: base case and recursive case · ⁨递归:基本情形与递归情形⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  20. 16 Text files: write and read with Scanner · ⁨文本文件:用 Scanner 写和读⁩ 2 required tasks · ⁨2 个必做任务⁩ Video · ⁨视频⁩
  21. 17 Inheritance: extends, super, and overriding · ⁨继承:extends、super 与重写⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  22. 18 Polymorphism: dynamic dispatch and toString() · ⁨多态:动态分派与 toString()⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  23. 19 FRQ workshop: the 4 question types · ⁨自由作答攻略:四种题型⁩ 2 required tasks · ⁨2 个必做任务⁩ Video · ⁨视频⁩

Language reference · ⁨语言参考⁩

/know/reference/java

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩