String to char array char at specific location ?? index of specific char ?? last occurrence of specific char ?? if char is a digit ?
toCharArray() charAt(index) indexOf(char c) lastIndexOf(char ch) Character.isDigit(char ch)
Ascii number starting from ‘A’ - ‘Z’
Ascii number starting for ‘a’ - ‘z’
65-90
97-122
Character addition
char methods to check if char is numeric ?
method to get numeric value of a char
will give ascii number addition of chars.
- Character.isDigit(c)
- c - ‘0’ -> gives int
Character.getNumericValue(c)
Comparator
compare(a,b)
if a > b return positive integer
A < b , negative integer
A== b , 0
Adding element to specified location or first, last
LinkedList
String contains digit
s.matches(.\d+.”)