Skip to content

Tag Archives: Scala-Strings

The equalsIgnoreCase() method is utilized to check if the stated string and object are equal by ignoring the case difference. Method Definition: Boolean equalsIgnoreCase(String anotherString)… Read More
The endsWith() method is utilized to check if the stated string ends with the suffix stated in the argument. Method Definition: Boolean endsWith(String suffix) Return… Read More
The equals() method is utilized to check if the stated string and object are equal. Method Definition: Boolean equals(Object anObject) Return Type: It returns true… Read More
The contentEquals() method is utilized to compare a string to the content of StringBuffer. Method Definition: Boolean contentEquals(StringBuffer sb) Return Type: It returns true if… Read More
The compareToIgnoreCase() method is utilized to compare two strings like compareTo method but here the case (upper or lowercase) difference is ignored while comparing. Method… Read More
The charAt() method is utilized to return the character of the index passed in the argument. Method Definition: char charAt(int index) Return Type: It returns… Read More
A string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. when… Read More
StringContext is a class that is utilized in string interpolation, which permits the end users to insert the variables references without any intermediary in the… Read More
Regular Expressions explain a common pattern utilized to match a series of input data so, it is helpful in Pattern Matching in numerous programming languages.… Read More
A String object is immutable, i.e. a String cannot be changed once created. In situations where you need to perform repeated modifications to a string,… Read More
String Interpolation refers to substitution of defined variables or expressions in a given String with respected values. String Interpolation provides an easy way to process… Read More
A string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. Creating… Read More