#
String (Java.lang.String)Immutable Datatype
#
Instantiate#
Methods (s)contains() - returns true/ false if subString is present in String
indexOf() - returns the index of the subString/ character
replace() - replace old char wth new char for all occurance of old char
- replaceFirst() - replace old char wth new char for first occurance of old char
- replaceFirst() - replace old char wth new char for first occurance of old char
matches() - tells whether or not the string matches the given regular expression, returns boolean
split() - split string at matching regex into string array
startsWith() - method determines whether a string begins with the characters of a specified string, returning true or false
endsWith() - method determines whether a string ends with the characters of a specified string, returning true or false
toLowerCase() - converts string to lowercase string
toUpperCase() - converts string to uppercase string
trim() - removes leading and training whitespace
join() - returns string joined with given delimiter
compareTo() - returns int value after comparing two strings lexographically
- Character.isLetter() - returns true/false if char is Letter
- Character.isDigit() - returns true/false if char is digit
- Character.isWhitespace() - returns true/false if char is space
- Character.isUpperCase() - returns true/false if char is a Uppercase letter
- Character.isLowerCase() - returns true/false if char is a Lowercase letter