Map / First Java
☕ First Java
Every Java program lives inside a class, and runs from its main method. Print text, store numbers in typed variables, and watch out for integer division.
- class
- main
- System.out.println
- System.out.print
- int
- double
- boolean
- String
- (int)
- /
- %
🛠 You will build: A unit converter
0 / 10 done
- 🔮 Predict 1. println or print?
- 👣 Trace 2. Variables change
- 🔮 Predict 3. Integer division
- 🧩 Order 4. Build a greeting
- ✏️ Fill in 5. Choose the types
- 🔮 Predict 6. Casting
- 🐞 Debug 7. Fix the compile error
- 🐞 Debug 8. Lossy conversion
- 🔧 Modify 9. Change the receipt
- ⌨️ Write 10. Unit converter
Unit check
Earlier activities again, with new inputs and edge cases. They also come back on the map as review the next day.