Skip to content

← Code

Java for AP CS A

Java programming for the AP Computer Science A exam.

java 19 Lessons

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with notes in English and Chinese.

Start the course

Lessons in this course

  1. history A short history of Java
  2. usage What Java is used for
  3. resources Where to learn more
  4. setup Set up your computer
  5. 01 Java basics: classes, main, and output
  6. 02 Using objects: String, Math, and wrappers
  7. 03 Booleans and selection: if/else and logic
  8. 04 Loops: while, for, and accumulation
  9. 05 Strings and nested loops
  10. 06 Writing a class: fields, constructor, methods
  11. 07 Encapsulation: private fields, getters, setters
  12. 08 1-D arrays: store, index, and traverse
  13. 09 Array algorithms: max, count, search, average
  14. 10 ArrayList: a list that grows
  15. 11 ArrayList algorithms: filter and the remove bug
  16. 12 2-D arrays: working with a grid
  17. 13 Searching: linear and binary
  18. 14 Sorting: selection and insertion sort
  19. 15 Recursion: base case and recursive case
  20. 16 Text files: write and read with Scanner
  21. 17 Inheritance: extends, super, and overriding
  22. 18 Polymorphism: dynamic dispatch and toString()
  23. 19 FRQ workshop: the 4 question types

Language reference

/know/reference/java

Log in or create account

IGCSE, A-Level & AP