1/15
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
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.
String Concatenation
The process of joining two or more strings together to form a single string.
toUpperCase(), toLoweraCase()
Converts the text to Upper and Lower Cases text
length()
Finding the length of a string
Scanner
Used to get user input, and it is found in the java.util package
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
read()
Reads a single character from the internal buffer of the reader
read(char[] array)
Reads the characters from the reader and stores in the
specified array
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
charAt(index)
Get character at a specific position
substring (start, end)
Extract part of a string
indexOf(), contains()
Find occurrence of a substring
replace(), replaceAll()
Replace parts of string
split(delimiter)
Divide string into parts by delimiter
equals(), compareTo()
Check if strings are equal or compare
concat()
The _______ method in Java is used to concatenate two strings.