Strings and their Methods

Class date: November 28

HW: Read JM Chapter 8 through 8.4. Do Exercises JM Ch8 #1-5

Image result for java string methods

Objective: Write a class that creates a String  object and call a String method.

Today’s activity:

  1. Warm-up: go to Canvas and take the “quiz”
    1. This is a warm-up exercise-restricted by Canvas as to “naming” rights. 😉
  2. Egg-cellent: How Strings work, using the everyday egg carton!
    1. Each student will have an egg-carton, a piece of colored paper, scissors and a marker/pen.
    2. Write your first and last name on the 4×6″ notecard.
    3.  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”?
      1. While you are accomplishing step 2, I will explain String methods and String indexing.Photo Oct 20, 10 12 22 AM
    4. 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. 🙂
    5. Egg-cellent Activity!
    6. Practice: JM Ch8 Exercises # 1-3

Leave a comment