0% found this document useful (0 votes)
28 views1 page

Chart of String Methods

Asu

Uploaded by

jiseni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Chart of String Methods

Asu

Uploaded by

jiseni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

2/16/25, 2:29 PM Section 8.

15 - CSE110 – Principles of Programming | zyBooks

Table 8.15.1: Character methods return values. Each method must prepend
Character., as in [Link].

isLetter('x') // toUpperCase('a'
true // A
true if isLetter('6') // toUpperCase('A'
Uppercase
sLetter(c) alphabetic: false toUpperCase(c) // A
version
a-z or A-Z isLetter('!') // toUpperCase('3'
false // 3

toLowerCase('A'
isDigit('x') // // a
true if digit: false Lowercase toLowerCase('a'
sDigit(c) isDigit('6') // toLowerCase(c) // a
0-9. version
true toLowerCase('3'
// 3

isWhitespace(' ')
// true
true if isWhitespace('\n')
sWhitespace(c) // true
whitespace.
isWhitespace('x')
// false

[Link] 1/1

You might also like