10. Strings and String Processing

 

 

 

 

 

OBJECTIVES

After studying this chapter, you will

Be more familiar with Java Strings.

Know how to solve problems that involve manipulating strings.

Be able to use loops in designing string-processing algorithms.

OUTLINE

Introduction

String Basics

Finding Things Within a String

Example: Keyword Search

From the Java Library: StringBuffer

Retrieving Parts of Strings

Example: Processing Names and Passwords

Processing Each Character in a String

Comparing Strings

From the Java Library: StringTokenizer

Handling Text in a Graphics Context (Optional)

Chapter Summary

Solutions to Self-Study Exercises Exercises

 

 

 

 

 

297