--- tags: Java, 101, --- # NKST: ## :memo: Todo List ### 1: Setting Java enviorment variable: https://www.kjnotes.com/devtools/35 ### 2: Start IDE `intelliJ` https://www.jetbrains.com/idea/ ### 3: Run "Hello World!" ```java= public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } ``` ### 4: Let's see the code directly! ```java= public class Average { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5, 6, 7 , 8, 9, 10}; int result = (arr[0] + arr[arr.length - 1])* arr.length / 2; System.out.println(result); } } ``` ### 5: What is git? https://gitbook.tw/chapters/introduction/what-is-git.html ### 6: Register a Github account! https://github.com ### 7: How to use git? https://git-scm.com/download/win git --version ### 8: Push your first commit! ###### git commit -m "This is my first commit" ###### git config --global user.email "email@example.com" ###### git config --global user.name "myname" ###### git commit -m "This is my first commit" ###### git add . ###### git commit -m "This is my first commit" ###### git push
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up