Interview Questions – Strings, LInkedList, Stacks & Queues
Strings String Methods Useful Method and Description charAt(int index)Returns the char value at the specified index. compareTo(String anotherString)Compares two strings lexicographically. concat(String str)Concatenates the specified string to the end of this string. contains(CharSequence s)Returns true if and only if this string contains the specified sequence of char values. equals(Object anObject)Compares this string to the specified object. getBytes()Encodes this String into a sequence of bytes …
Interview Questions – Strings, LInkedList, Stacks & Queues Read More »