Vicki Gold

Lesson 5b - 9/30 and 10/1

APJava Programming

Implementing Classes and Fundamental Data Types

Lesson 5b

Mass Framework:

Standard 1:

Standard 2:

Standard from Technology/Engineering Standards for a Full First-Year Course in Grades 9 or 10

Learning Objective: 

Learning Experience:

  • Lesson 5 - 9/30
  • Computer
    • Go over assignments
      • Assignment 1 - labs and up to test2
      • Assignment 2 - P2.10
      • Assignment 3 - Emac test 3 to 5
      • Assignment 4 - Chapter 3 problems
    • Go over questions while I was gone
    • Keith do lab 2 and 3
    • String exercises - take a piece of paper
      • Length
        • 1.What is the length of the string "DeadMenTellNoTales"? 18 start from 1
          2.What is the length of the string "Dead Men Tell No Tales"? 22
          3.What is the index of the character D in the string "Dead Men Tell No Tales"? 0 - start from 0
          4.What is the index of the character n in the string "Dead Men Tell No Tales"? 7
          5.What is the index of the character N in the string "Dead Men Tell No Tales"? 14
      • What is the concatentation operator
  • 10/ 1 go over substring
    • Consider the string "abcde". What should the arguments m and n be so that "abcde".substring( m, n ) evaluates to the substring
      • bcd - 1, 4
      • de - 3, 5
      • abcd 0,4
      • bcde 1,5
      • c - 2,3