Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
Génération de l'aperçu...
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
Résumé IA
- Nom du document
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Auteur (dans le document)
- Christine Zhou
- Contenu
- 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 des matières
- 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
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou » est gratuit — il suffit de vous connecter et de cliquer sur Télécharger pour obtenir le fichier original.
Combien de pages compte ce document ?
Le document contient 14 pages, pour le cours Lập trình Java. Vous pouvez le prévisualiser en ligne avant de le télécharger.
Puis-je prévisualiser avant de télécharger ?
Oui. Vous pouvez prévisualiser ce document directement sur cette page avec le lecteur en ligne, puis décider de le télécharger ou non.
Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
Génération de l'aperçu...
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
Lire le document entier
- Nom du document
- Intro to Java (Discussion 1) (Nhập môn Java) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Auteur (dans le document)
- Christine Zhou
- Contenu
- 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 des matières
- 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
- Téléversé par
- Uni24h
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !
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
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !