WEEK 4 — String Processing and Validation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

18 Terms

1
New cards
What is String processing? Examining or manipulating text.
2
New cards
What is `StringBuilder`? A mutable sequence of characters.
3
New cards
What is `.append()`? Adds content to the end of a StringBuilder.
4
New cards
What is `.insert()`? Inserts content at a specified position.
5
New cards
What is `.delete()`? Removes characters from a StringBuilder.
6
New cards
What is `.reverse()`? Reverses the characters in a StringBuilder.
7
New cards
What is parsing? Converting or interpreting text into structured values.
8
New cards
What is `Integer.parseInt()`? Converts valid numeric text into an `int`.
9
New cards
What is `Double.parseDouble()`? Converts valid numeric text into a `double`.
10
New cards
What is validation? Checking whether input follows required rules.
11
New cards
What is defensive programming? Writing code to anticipate and handle problems.
12
New cards
What is a validation loop? Repeatedly requests input until it is acceptable.
13
New cards
What is `.trim()`? Removes leading and trailing whitespace from a String.
14
New cards
What is `.isEmpty()`? Checks whether a String contains zero characters.
15
New cards
What is `.toUpperCase()`? Returns a String converted to uppercase.
16
New cards
What is `.toLowerCase()`? Returns a String converted to lowercase.
17
New cards
What is a delimiter? A character or sequence separating pieces of data.
18
New cards
What is input sanitization? Cleaning or normalizing input according to defined rules.