Aa

Text size

?

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

  1. 🔮 Predict 1. println or print?
  2. 👣 Trace 2. Variables change
  3. 🔮 Predict 3. Integer division
  4. 🧩 Order 4. Build a greeting
  5. ✏️ Fill in 5. Choose the types
  6. 🔮 Predict 6. Casting
  7. 🐞 Debug 7. Fix the compile error
  8. 🐞 Debug 8. Lossy conversion
  9. 🔧 Modify 9. Change the receipt
  10. ⌨️ 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.

  1. 🔮 Predict Check 1. Check: dividing again
  2. ⌨️ Write Check 2. Check: another conversion