AP 计算机科学 A Java
面向 AP 计算机科学 A 考试的 Java 编程。
- Java
- 21 课程
- 16 videos
- 在浏览器中运行
此设备:完成 0 / 21 门课程
每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。
本课程中的课程
显示 25 / 25 门课程
没有找到匹配的课程。请清除搜索条件或选择其他筛选器。
- Java 基础:类、main 和输出 AP 计算机科学 A 使用 Java · Java 的基本骨架 · 类型 Lesson 1 · 3 项必做任务 · ★
- 使用对象:String、Math 和包装类 使用对象 · 用 new 创建对象 · String 的方法 · 比较字符串 Lesson 2 · 3 项必做任务 · ★ 视频
- Booleans and selection: if/else and logic Booleans and selection · Relational operators · if / else if / else · Logical operators Lesson 3 · 3 项必做任务 · ★★ 视频
- Loops: while, for, and accumulation Loops · The while loop · The for loop · Accumulation Lesson 4 · 3 项必做任务 · ★★ 视频
- 字符串与嵌套循环 Traversing a String · Counting characters · Building a new String Lesson 5 · 3 项必做任务 · ★★★ 视频
- Writing a class: fields, constructor, methods Make your own type · Instance variables · A constructor · Instance methods Lesson 6 · 3 项必做任务 · ★★ 视频
- Encapsulation: private fields, getters, setters Protect your data · private fields · Accessors (getters) · Mutators (setters) Lesson 7 · 3 项必做任务 · ★★★
- 1-D arrays: store, index, and traverse Many values in one box · Make an array with values · Index positions · Make an empty array Lesson 8 · 3 项必做任务 · ★★ 视频
- Array algorithms: max, count, search, average Common array jobs · Sum and count · Find the maximum · Find the minimum Lesson 9 · 4 项必做任务 · ★★★ 视频
- ArrayList: a list that grows A list that can grow · Making an ArrayList · The methods you need · Numbers need Integer Lesson 10 · 3 项必做任务 · ★★ 视频
- ArrayList algorithms: filter and the remove bug Doing work on a whole list · Counting with a rule · Filtering into a new list · The remove-while-iterating bug Lesson 11 · 3 项必做任务 · ★★★ 视频
- 2-D arrays: working with a grid A grid of values · Making a 2-D array · Reading and writing one cell · How big is the grid? Lesson 12 · 3 项必做任务 · ★★★ 视频
- Searching: linear and binary Finding a value · Linear search · How fast is linear search? · Binary search needs a sorted array Lesson 13 · 3 项必做任务 · ★★★ 视频
- Sorting: selection and insertion sort Putting an array in order · Selection sort: the idea · Selection sort: a trace · Insertion sort: the idea Lesson 14 · 3 项必做任务 · ★★★★ 视频
- Recursion: base case and recursive case A method that calls itself · Base case and recursive case · Example: power · How the calls unwind Lesson 15 · 3 项必做任务 · ★★★★ 视频
- Text files: write and read with Scanner Reading and writing text files · The imports you need · Files can fail, so we say throws IOException · Writing a file with PrintWriter Lesson 16 · 3 项必做任务 · ★★★ 视频
- Inheritance: extends, super, and overriding Inheritance: building on a class · extends and super · Overriding a method · super.method() — extend, don't replace Lesson 17 · 3 项必做任务 · ★★★★ 视频
- Polymorphism: dynamic dispatch and toString() Polymorphism: one type, many behaviours · Dynamic dispatch · One loop handles every subclass · toString(): every object inherits it from Object Lesson 18 · 3 项必做任务 · ★★★★ 视频
- FRQ workshop: the 4 question types The free-response section · Type 1: Methods and Control Structures · Type 2: Class Design · Type 3: Data analysis with ArrayList Lesson 19 · 4 项必做任务 · ★★★★★
- Numbers: division, casting and overflow Numbers that surprise you · Integer division and % · Casting a double to an int · When an int is too big Lesson 20 · 4 项必做任务 · ★★★
- Overloading, scope, null and De Morgan Small rules that cost marks · Overloading: one name, several methods · Scope: where a variable exists · null: a reference to nothing Lesson 21 · 4 项必做任务 · ★★★
阅读与资源
- Java 简史 Where Java came from · Write once, run anywhere · Java grows up · Java today 阅读与资源
- Java 用来做什么 What people build with Java · Phone apps · Big-company systems · Big data and games 阅读与资源
- 更多学习资源 边玩边练 · 阅读与参考 · 本站更多内容 · 小提示 阅读与资源
- 设置你的电脑 Run Java on your own computer · Step 1 — Install the JDK · Step 2 — Install VS Code · Step 3 — Add the Java extension 阅读与资源
Open the Java reference
Every topic in one place, with short examples you can run.
深入学习入口
- Exercism —— Java 课程 免费的编程练习,还有友好的反馈
- CodinGame 通过有趣的编程游戏来学 Java
- HackerRank —— Java 从易到难的小挑战
- dev.java(官方) Java 官方网站,有面向初学者的清晰指南
- Java 官方教程 Oracle 出品的分步课程
- Visual Studio Code 在自己电脑上写 Java 的免费编辑器
- Java 练习题(本站) 考试风格的题目,检验你的 Java
- AP 计算机科学原理(本站) 用 Python 学计算的大思想