Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
Generating preview...
Tài liệu ghi chú buổi thảo luận môn Nhập môn Java, bao gồm giới thiệu về Git, cấu trúc điều khiển và đệ quy trong Java.
Description
Discussion 1: Intro to Java Christine Zhou Agenda Introductions & About Me Announcements Git Worksheet! Introductions & About Me Christine, 3rd year Email: cazhou@berkeley.edu Feel free to email me! Always available to chat one-on-one What is your name, year, major? Announcements Lab1 is due tonight at 11:59PM. HW0 is due this Friday at 11:59PM. Office hours and discussion/lab calendars on the course website. Discussion survey: shoutkey.com/leak Git VCS (version-control system), can save your work and go back to previous versions very easily You have a central repository living somewhere stored by git You can use ‘git clone’ to get a copy of this central repository anywhere you want (ie. on your local computer and instructional account) When you ‘git add X.java’, ‘git commit -m “...”’, and ‘git push’, you are sending your work to the central repository Not to other copies of the repository! Some Git Commands to Know Camera analogy git add: take a snapshot of your files (this is called staging your changes) git commit: save the snapshot that you took with a message git push: pushes snapshots from your repo to the central repo git pull: pulls snapshots from the central repo to your repo git status: shows the status of your repo git log: shows all the snapshots/corresponding messages you’ve made on your repo git tag: mark a specific snapshot with a tag 1. Javaian Rhapsody Variable assignments, to different types (String, int, Singer) String and int are provided in Java, Singer is a self-defined class! 1. Javaian Rhapsody (continued) While loops will continue as long as the condition is true Condition in this case is x>0 Possible to loop infinitely if the condition is always true Maybe we forget to decrement x? 1. Javaian Rhapsody (continued) Create arrays in Java with the bracket notation, can access with indexing For loops: for (instantiation; condition; incrementation) Will do what is within the brackets
AI summary
- Document name
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- School / Course
- University of California, Berkeley · Lập trình Java
- Author (in document)
- Christine Zhou
- Content
- Tài liệu giới thiệu các khái niệm cơ bản của Java như biến, vòng lặp, mảng, và cách sử dụng Git. Nó cũng bao gồm các bài tập thực hành để củng cố kiến thức.
- Table of contents
- Agenda
- Introductions & About Me
- Announcements
- Git
- Some Git Commands to Know
- 1. Javaian Rhapsody
- 1. Javaian Rhapsody (continued)
- 2. Fibonacci
- 2. Fibonacci (continued)
- 3. Mystery
- 3. Mystery (continued)
- Pages
- 14 pages
- Uploaded by
- Uni24h
Frequently asked questions
Is this document free?
Yes. “Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 14 pages, for the course Lập trình Java. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.
Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
Generating preview...
Discussion 1: Intro to Java Christine Zhou Agenda Introductions & About Me Announcements Git Worksheet! Introductions & About Me Christine, 3rd year Email: cazhou@berkeley.edu Feel free to email me! Always available to chat one-on-one What is your name, year, major? Announcements Lab1 is due tonight at 11:59PM. HW0 is due this Friday at 11:59PM. Office hours and discussion/lab calendars on the course website. Discussion survey: shoutkey.com/leak Git VCS (version-control system), can save your work and go back to previous versions very easily You have a central repository living somewhere stored by git You can use ‘git clone’ to get a copy of this central repository anywhere you want (ie. on your local computer and instructional account) When you ‘git add X.java’, ‘git commit -m “...”’, and ‘git push’, you are sending your work to the central repository Not to other copies of the repository! Some Git Commands to Know Camera analogy git add: take a snapshot of your files (this is called staging your changes) git commit: save the snapshot that you took with a message git push: pushes snapshots from your repo to the central repo git pull: pulls snapshots from the central repo to your repo git status: shows the status of your repo git log: shows all the snapshots/corresponding messages you’ve made on your repo git tag: mark a specific snapshot with a tag 1. Javaian Rhapsody Variable assignments, to different types (String, int, Singer) String and int are provided in Java, Singer is a self-defined class! 1. Javaian Rhapsody (continued) While loops will continue as long as the condition is true Condition in this case is x>0 Possible to loop infinitely if the condition is always true Maybe we forget to decrement x? 1. Javaian Rhapsody (continued) Create arrays in Java with the bracket notation, can access with indexing For loops: for (instantiation; condition; incrementation) Will do what is within the brackets
Read full document
- Document name
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- School / Course
- University of California, Berkeley · Lập trình Java
- Author (in document)
- Christine Zhou
- Content
- Tài liệu giới thiệu các khái niệm cơ bản của Java như biến, vòng lặp, mảng, và cách sử dụng Git. Nó cũng bao gồm các bài tập thực hành để củng cố kiến thức.
- Table of contents
- Agenda
- Introductions & About Me
- Announcements
- Git
- Some Git Commands to Know
- 1. Javaian Rhapsody
- 1. Javaian Rhapsody (continued)
- 2. Fibonacci
- 2. Fibonacci (continued)
- 3. Mystery
- 3. Mystery (continued)
- Pages
- 14 pages
- Uploaded by
- Uni24h
Comments (0)
No comments yet. Be the first!
Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
Final Review Solutions (Cấu trúc dữ liệu heap, hàng đợi ưu tiên và duyệt đồ thị) - Ching and Christines
Giáo trình Lập trình Java
Inheritance (Discussion 4) (Kế thừa trong Java) - Christine Zhou
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Comments (0)
No comments yet. Be the first!