Strings Manipulation

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

String Manipulation

  • Refers to the process of changing, analyzing, or working with strings (text) to achieve a desired outcome.

  • It involves performing operations such as creating, modifying, comparing, extracting, and formatting strings.

2
New cards

String Concatenation

The process of joining two or more strings together to form a single string.

3
New cards

toUpperCase(), toLoweraCase()

Converts the text to Upper and Lower Cases text

4
New cards

length()

Finding the length of a string

5
New cards

Scanner

Used to get user input, and it is found in the java.util package

6
New cards

BufferReader

A public Java class that reads text, using buffering to enable large reads at a time for efficiency, storing what is not needed immediately in memory for later use

7
New cards

read()

Reads a single character from the internal buffer of the reader

8
New cards

read(char[] array)

Reads the characters from the reader and stores in the
specified array

9
New cards

read(char[] array, int start, int length)


reads the number of characters equal to length from the reader and stores in the specified array starting from the position start

10
New cards

charAt(index)

Get character at a specific position

11
New cards

substring (start, end)

Extract part of a string

12
New cards

indexOf(), contains()

Find occurrence of a substring

13
New cards

replace(), replaceAll()

Replace parts of string

14
New cards

split(delimiter)

Divide string into parts by delimiter

15
New cards

equals(), compareTo()

Check if strings are equal or compare

16
New cards

concat()

The _______ method in Java is used to concatenate two strings.