Java cho AP CS A
Lập trình Java cho kỳ thi AP Computer Science A.
- java
- 21 Bài học
- 16 videos
- Chạy trực tiếp trên trình duyệt của bạn
Trên thiết bị này: 0 trong số 21 bài học đã hoàn thành
Mỗi bài học chạy trên trình duyệt của bạn — viết mã thật, nhấn Chạy, và các nhiệm vụ tự kiểm tra. Miễn phí, không cần tài khoản, kèm ghi chú dịch song ngữ với tiếng Anh.
Các bài học trong khóa học này
Đang hiển thị 25 trong số 25 bài học
Không có bài học nào khớp. Xóa bộ lọc tìm kiếm hoặc chọn bộ lọc khác.
- Java cơ bản: classes, main, và output AP Tin học Máy tính A sử dụng Java · Khung Java · Kiểu dữ liệu Lesson 1 · 3 nhiệm vụ bắt buộc · ★
- Sử dụng objects: String, Math, và wrappers Sử dụng đối tượng · Tạo đối tượng với new · Các phương thức String · So sánh String Lesson 2 · 3 nhiệm vụ bắt buộc · ★ Video
- Booleans and selection: if/else and logic Booleans and selection · Relational operators · if / else if / else · Logical operators Lesson 3 · 3 nhiệm vụ bắt buộc · ★★ Video
- Loops: while, for, and accumulation Loops · The while loop · The for loop · Accumulation Lesson 4 · 3 nhiệm vụ bắt buộc · ★★ Video
- Strings và vòng lặp lồng nhau Traversing a String · Counting characters · Building a new String Lesson 5 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Writing a class: fields, constructor, methods Make your own type · Instance variables · A constructor · Instance methods Lesson 6 · 3 nhiệm vụ bắt buộc · ★★ Video
- Encapsulation: private fields, getters, setters Protect your data · private fields · Accessors (getters) · Mutators (setters) Lesson 7 · 3 nhiệm vụ bắt buộc · ★★★
- 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 nhiệm vụ bắt buộc · ★★ Video
- Array algorithms: max, count, search, average Common array jobs · Sum and count · Find the maximum · Find the minimum Lesson 9 · 4 nhiệm vụ bắt buộc · ★★★ Video
- ArrayList: a list that grows A list that can grow · Making an ArrayList · The methods you need · Numbers need Integer Lesson 10 · 3 nhiệm vụ bắt buộc · ★★ Video
- 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 nhiệm vụ bắt buộc · ★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★ Video
- Searching: linear and binary Finding a value · Linear search · How fast is linear search? · Binary search needs a sorted array Lesson 13 · 3 nhiệm vụ bắt buộc · ★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★★ Video
- 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 nhiệm vụ bắt buộc · ★★★★★
- 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 nhiệm vụ bắt buộc · ★★★
- 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 nhiệm vụ bắt buộc · ★★★
Đọc và tài liệu tham khảo
- Lịch sử ngắn gọn về Java Where Java came from · Write once, run anywhere · Java grows up · Java today Đọc và tài liệu tham khảo
- Java được sử dụng để làm gì What people build with Java · Phone apps · Big-company systems · Big data and games Đọc và tài liệu tham khảo
- Nơi tìm hiểu thêm Chơi và thực hành · Đọc và tham khảo · Thêm nội dung trên trang này · Mẹo Đọc và tài liệu tham khảo
- Cài đặt máy tính của bạn Run Java on your own computer · Step 1 — Install the JDK · Step 2 — Install VS Code · Step 3 — Add the Java extension Đọc và tài liệu tham khảo
Open the Java reference
Every topic in one place, with short examples you can run.
Nơi tìm hiểu thêm
- Exercism — Track Java Bài tập lập trình miễn phí với phản hồi thân thiện
- CodinGame Học Java bằng cách giải các trò chơi lập trình thú vị
- HackerRank — Java Thử thách ngắn, từ dễ đến khó
- dev.java (chính thức) Trang web chính thức của Java, với các hướng dẫn rõ ràng cho người học
- Các bài tutorial về Java Bài giảng từng bước của Oracle
- Visual Studio Code Trình soạn thảo miễn phí để viết Java trên máy tính cá nhân của bạn
- Bài tập thực hành Java (trang này) Câu hỏi dạng kỳ thi để kiểm tra kiến thức Java của bạn
- AP CS Principles (trang này) Những ý tưởng cốt lõi của tin học, bằng Python