Chapter 10 Strings and Characters 571 Fig. 10.17

Chapter 10 Strings and Characters 571 Fig. 10.17 staticcharacter testing methods and case conversion methods of class Character(part 3 of 3). Line 64 uses Character method isDigit to determine whether character c is a defined Unicode digit. If so, the method returns true; otherwise, it returns false. Line 66 uses Character method isJavaIdentifierStart to determine whether cis a character that can be used as the first character of an identifier in Java i.e., a letter, an underscore (_) or a dollar sign ($). If so, the method returns true; otherwise, it returns false. Line 68 uses method Character method isJavaIdentifier- Part to determine whether character c is a character that can be used in an identifier in Java i.e., a digit, a letter, an underscore (_) or a dollar sign ($). If so, the method returns true; otherwise, it returns false. Line 69 uses method Character method isLetter to determine whether character cis a letter. If so, the method returns true; otherwise, it returns false. Line 71 uses method Charactermethod isLetterOrDigitto determine whether character cis a letter or a digit. If so, the method returns true; otherwise, it returns false. Line 72 uses method Charactermethod isLowerCaseto determine whether character c is a lowercase letter. If so, the method returns true; otherwise, it returns false. Line 73 uses method Charactermethod isUpperCaseto determine whether character cis an uppercase letter. If so, the method returns true; otherwise, it returns false. Line 74 uses method Charactermethod toUpperCaseto convert the character c to its uppercase equivalent. The method returns the converted character if the character has an uppercase equivalent; otherwise, the method returns its original argument. Line 75 uses method Charactermethod toLowerCaseto convert the character cto its lowercase Copyright 1992 2002 by Deitel & Associates, Inc. All Rights Reserved. 7/7/01

Leave a Reply