Java – String indexOf() method
In this article, we will discuss different variants of index of methods to get first occurrence of character/substring using String’s indexOf() method 1. String’s indexOf() method: Read More
In this article, we will discuss different variants of index of methods to get first occurrence of character/substring using String’s indexOf() method 1. String’s indexOf() method: Read More
In this article, we will discuss how to get hash code for any string using String’s hashCode() method 1. String’s hashCode() method: This String method Read More
In this article, we will discuss how to convert String into character array using String’s getChars() method 1. String’s getChars(int srcBegin, int srcEnd, char dst[], Read More
In this article, we will discuss couple of variant methods of String to convert/encode the string into equivalent byte array 1. String’s getBytes() method: This Read More
In this article, we will discuss formatting a string using String’s format() method 1. String’s format(String format, Object… args) method: This String method is used Read More
In this article, we will discuss difference between ArrayList and LinkedList classes in detail i.e.; ArrayList v/s LinkedList Also, we will list few pointers with regards Read More
In this article, we will discuss string comparison using String’s equalsIgnoreCase() method, which ignores case differences while comparing 2 string contents 1. String’s equalsIgnoreCase(Object anObject) Read More
In this article, we will discuss string comparison using String’s equals() method 1. String’s equals(Object anObject) method: This String method is used to perform string Read More
In this article, we will discuss how to test whether a string ends with particular character sequence (another string or suffix) using String’s endsWith() method Read More
In this article, we will discuss a sample program on String which is commonly asked to test skill on overridden toString() method Q) What will be Read More
In this article, we will discuss how to convert character array (char[]) to string using String’s copyValueOf() method 1. String’s copyValueOf(char[] data) method: This String Read More
In this article, we will discuss on Java collection framework (JCF) overview and quick pointers about each important collection classes Java Collection framework hierarchy Source: Read More
In this article, we will discuss String comparison with StringBuffer using String’s contentEquals() method 1. String’s contentEquals(StringBuffer sb) method: This String method compares the contents Read More
In this article, we will discuss to check whether particular character sequence exists or not in the invoking string content/value 1. String’s contains(CharSequence str): This Read More
In this article, we will discuss how to concatenate two strings or multiple strings using String’s concat() method 1. String’s concat (String str) method: This Read More
In this article, we will discuss how to compare two strings using String’s compareToIgnoreCase() method which ignores CASE difference while comparing 1. String’s compareToIgnoreCase(String anotherString) Read More
In this article, we will discuss how to compare two strings using String’s compareTo() method 1. String’s compareTo(String anotherString) method: This String method compares 2 Read More
In this article, we will discuss how to get a specific character from the supplied/passed string content 1. String’s charAt(int index) method: This String method Read More
In this article, we will discuss various ways to concatenate strings in Java Various ways to Concatenate Strings : Using concatenation operator (+) Using concat() Read More
In this article, we will discuss various ways to compare two strings in Java Various ways to compare 2 Strings : Using String class’s1. equals() Read More