Loading video...
Strings
- A string consists of zero or more characters
- A literal string is a sequence of characters within double quotes
- Use the + or += operator to concatenate (join the contents of) two strings
- The length method tells you the number of characters in a string
- Use the equals or compareTo methods (not ==) to compare two strings
- The substring and indexOf methods are useful for string manipulation
Strings
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.
- Intro
- Roadmap
- Literal Strings
- String Concatenation
- String Concatenation
- String Length
- String Comparison
- String Comparison
- String.Equals: Case-Sensitive
- Equals Ignore Case: Case-Insensitive
- Example: Case-Sensitive and Case-Insensitive Comparison
- String Comparison
- Taking a Subset of a String
- Substring Method
- 2 Versions
- 1st Version: Takes One Parameter
- 2nd Version: Takes Two Parameters
- Example: Substring
- Searching Within a String
- Searching Within a String
- Summary

































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview