Class date: November 28
HW: Read JM Chapter 8 through 8.4. Do Exercises JM Ch8 #1-5
Objective: Write a class that creates a String object and call a String method.
Today’s activity:
- Warm-up: go to Canvas and take the “quiz”
- This is a warm-up exercise-restricted by Canvas as to “naming” rights. 😉
- Egg-cellent: How Strings work, using the everyday egg carton!
- Each student will have an egg-carton, a piece of colored paper, scissors and a marker/pen.
- Write your first and last name on the 4×6″ notecard.
- Cut each letter apart and place into a “dimple” of the egg carton. BTW, did you know that each portion of an egg carton is called a “dimple”?
- While you are accomplishing step 2, I will explain String methods and String indexing.
- As we begin to index and count the letters of your name and work with String methods you will learn to identify name.charAt(4) or name.substring(0,6), etc. 🙂
- Egg-cellent Activity!
- Practice: JM Ch8 Exercises # 1-3