Map / Using Objects
🧰 Using Objects
Strings are objects with methods you call with a dot. Math gives ready-made calculations, and Integer turns text into numbers.
- new
- length()
- substring()
- indexOf()
- charAt()
- equals()
- Math.pow()
- Math.sqrt()
- Integer.parseInt()
- null
🛠 You will build: A name and text formatter
0 / 10 done
- 🔮 Predict 1. String methods
- 👣 Trace 2. Pieces of a name
- 🔮 Predict 3. Math methods
- 🔮 Predict 4. == or equals?
- 🧩 Order 5. Text to numbers
- ✏️ Fill in 6. Shout and whisper
- 🐞 Debug 7. Method or field?
- 🐞 Debug 8. Off the end of the String
- ⌨️ Write 9. Initials
- ⌨️ Write 10. Distance between points
Unit check
Earlier activities again, with new inputs and edge cases. They also come back on the map as review the next day.