| title |
description |
Reference variable |
Stores memory address of an object |
|
| title |
description |
String class |
Represents a sequence of characters |
|
| title |
description |
Concatenating strings |
+ operator is used to concatenate two strings |
|
| title |
description |
charAt(index) |
Returns the character at specified index |
|
| title |
description |
length() |
Returns the length of the string |
|
| title |
description |
substring(int startIndex, int endIndex) |
Returns a substring of a string, starting at startIndex and ending at the endIndex - 1 |
|
| title |
description |
toLowerCase() |
Returns a new string with all the characters in lower case |
|
| title |
description |
toUpperCase() |
Returns a new string with all the characters in upper case |
|
| title |
description |
trim() |
Returns a new string with leading and trailing whitespace removed |
|
| title |
description |
indexOf(String str) |
Returns the index of the first occurrence of the string, or -1 if the string is not found. |
|
| title |
description |
contains(String str) |
Returns true if the string contains the specified string, false otherwise. |
|
| title |
description |
replace(CharSeq oldStr, CharSeq newStr) |
Returns a new string with all occurrences of the specified string replaced by the new string. |
|
| title |
description |
isEmpty() |
Checks if a String is empty or not. |
|
| title |
description |
endsWith() |
Checks if a string ends with specified suffix |
|
| title |
description |
startsWith() |
Checks if a string starts with specified prefix |
|
| title |
description |
StringBuffer |
Mutable string used to manipulate strings with operations like append, delete and insert |
|