Lesson 0. Getting Started with Java: Hello World
1. Introduce yourself and tell us why you want to learn programming?
Please answer it on gist Java_01-1 if you have no github account, please create one right now.
2. Why Java?
- What’s programming languages?
- What’s different between Java and other languages?
Please do google research, look into at least 3 results. And answer the question base your understanding at gist Java_01-2
3. What you will learn from this class
- Java foundation
- Object Oriented Programming
- Data Structure and Algorithm
- Java Projects
- AP CSA practice
4. Found out what is the latest version of Java and how to install it
- hint: Java OpenJDK
I will post my answer on gist Java_01-4 after 2 mins.
5. Found out 5 Java Editors you like to try to use
- Java editor also call Java IDE (Integrated Development Environment)
- Please install VS Code
- (option) Install BlueJ for OODP part of this class
- Any other your school pc already installed
Please list 5 Java IDE (gist Java_01-05)
6. Build your first Java Program - “Hello World”
-
Hello World example in W3school (java get start sample)
- BlueJ
- Create and run
Hello World
program - Create a new Project in your IDE
- Create a new Class with name “HelloWorld”
- Add method to print string type variable
- Compile your code
- Create a instance of your Class “HelloWorld” with “ new HelloWorld()”
- Run the code
- Create and run
- Command line Build and run the HelloWorld
- Crate a static main method in the HelloWorld Class
- Run Java in command line: ` java HelloWorld.java`
- Build Java
javac HelloWorld.java
- Run HelloWorld.class file in command line ` java HelloWorld `
- VS Code set break point for debug
7 Home Work
-
What’s the different of BlueJ from others Java IDEs? Put you answer as comments of gist Java_01-7
-
Try some AI tool too see how you could learn programming
- https://chatgpt.com/
- https://gemini.google.com/app
- https://www.perplexity.ai/ (Best AI tool for learning)
- https://arena.lmsys.org/ (compare results any two ai,choice
sus-column-r
for Grok2)