--- tags: Java, Hello world, --- # NKUST 20211108: ## :memo: Todo List https://mail.google.com/chat/u/0/#chat/space/AAAAu5pS4mA ### :snowboarder: Clone your repo EX: ```git= git clone https://github.com/yourname/NKUST.git ``` open your folder by intelliJ ### :snowboarder: Write your Hello EX: ```java= public class Hello { public static void main(String[] args) { System.out.println("Hello " + "Henry"); } } ``` ###### tips: type the code by yourself, don't copy them ### :snowboarder:: Declare your variable EX: ```java= public class Variable { public static void main(String[] args) { // This is a comment //lowerCamelCase variable name String myName = "Henry Johnson"; System.out.println("Hello " + myName); } } ``` ### 4: What is camelCase name? EX: ```java= String herFirstName = "Cindy"; int myMomAge = 53; char identifyCharacter = 'S'; float myFloatNum = 5.99f; // Floating point number ``` ### 5: Java Data Types https://www.w3schools.com/java/java_data_types.asp ### 6: Java Operators https://www.w3schools.com/java/java_operators.asp ### 7: Java User Input (Scanner) ### :snowboarder: Calculate Exercise 1. BMI 2. 7 * 54 + 0 * 10 / 2 + 3
×
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