Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
正在生成预览...
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.
描述
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 摘要
- 文档名称
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- 学校 / 课程
- University of California, Berkeley · Lập trình Java
- 作者(文档中)
- Christine Zhou
- 内容
- 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.
- 目录
- 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)
- 页数
- 14 页
- 上传者
- Uni24h
常见问题
此文档免费吗?
是的。“Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 14 页,适用于课程 Lập trình Java。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
正在生成预览...
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
阅读全文
- 文档名称
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- 学校 / 课程
- University of California, Berkeley · Lập trình Java
- 作者(文档中)
- Christine Zhou
- 内容
- 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.
- 目录
- 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)
- 页数
- 14 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Java DataBase Connectivity - Kết nối kho dữ liệu Java
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
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
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
评论 (0)
暂无评论。快来抢沙发吧!