Which is NOT a method of the String class? Question 18 options: replace toUppercase substring length
Added by Matthew J.
Step 1
Step 1: The String class in Java has several methods for manipulating strings, such as replace, toUppercase, substring, and length. Show more…
Show all steps
Your feedback will help us improve your experience
Sarvesh Somasundaram and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a short Java method that uses a StringBuilder instance to remove all the punctuation from a string $s$ storing a sentence, for example, transforming the string "Let's try, Mike!" to "Lets try Mike".
To convert all the uppercase letters in a string to their lowercase counterpart, you can use the ___________ method of the string class. a. IsLower( ) b. ConvertLower( ) c. Lower( ) d. ToLower( ) e. none of the above
The char data type provides the methods for converting the case of a character. a. Lowercase and Uppercase methods b. ToLower and ToUpper methods c. IsDigit and IsLetter methods d. IsWhiteSpace and IsPunctuation methods
Paul G.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD