Chapter 10 Strings and Characters 537 (Free web hosting music) Outline 10.1

Chapter 10 Strings and Characters 537 Outline 10.1 Introduction 10.2 Fundamentals of Characters and Strings 10.3 String Constructors 10.4 String Methods length, charAt and getChars 10.5 Comparing Strings 10.6 String Method hashCode 10.7 Locating Characters and Substrings in Strings 10.8 Extracting Substrings from Strings 10.9 Concatenating Strings 10.10 Miscellaneous String Methods 10.11 Using String Method valueOf 10.12 String Method intern 10.13 StringBuffer Class 10.14 StringBuffer Constructors 10.15 StringBuffer Methods length, capacity, setLengthand ensureCapacity 10.16 StringBuffer Methods charAt, setCharAt, getCharsand reverse 10.17 StringBuffer append Methods 10.18 StringBuffer Insertion and Deletion Methods 10.19 Character Class Examples 10.20 Class StringTokenizer 10.21 Card Shuffling and Dealing Simulation 10.22 (Optional Case Study) Thinking About Objects: Event Handling Summary Terminology Self-Review Exercises Answers to Self-Review Exercises Exercises Special Section: Advanced String Manipulation Exercises Special Section: Challenging String Manipulation Projects 10.1 Introduction In this chapter, we introduce Java s string and character-processing capabilities. The techniques discussed here are appropriate for validating program input, displaying information to users and other text-based manipulations. The techniques also are appropriate for developing text editors, word processors, page-layout software, computerized typesetting systems and other kinds of text-processing software. We have already presented several string- processing capabilities in the text. This chapter discusses in detail the capabilities of class String, class StringBuffer and class Character from the java.lang package and class StringTokenizer from the java.utilpackage. These classes provide the foundation for string and character manipulation in Java. Copyright 1992 2002 by Deitel & Associates, Inc. All Rights Reserved. 7/7/01

Leave a Reply