Git log
In this guide, we will discuss about Git log. The advantage of a version control system is that it records changes. These records allow us to retrieve the data like…
In this guide, we will discuss about Git log. The advantage of a version control system is that it records changes. These records allow us to retrieve the data like…
It outputs whether a String matches the given regular expression. Syntax Boolean matches(String regex) Parameters Regex − the expression for comparison. Return Value This method returns true if, and only if,…
Returns the index within this String of the first occurrence of the specified substring. This method has 4 different variants. public int indexOf(int ch) − Returns the index within this string…
In this section, we will discuss, get method in Groovy. Syntax String getAt(int index) Parameters Index – The position of the string to return Return Value String value at the…
Compares this String to another String, ignoring case considerations. Syntax Boolean equalsIgnoreCase(String str) Parameters Str - the String to compare this String against Return Value This method returns true if…
Tests whether this string ends with the specified suffix. Syntax Boolean endsWith(String suffix) Parameters Suffix – The suffix to search for Return Value This method returns true if the character…
Processes each regex group (see next section) matched substring of the given String. Syntax void eachMatch(String regex, Closure clos) Parameters Regex – The string expression to search forClosure – optional…
Concatenates the specified string to the end of this String. Syntax String concat(String str) Parameters str - the String that is concatenated to the end of this String. Return Value…
Compares two strings lexicographically, ignoring case differences. Syntax int compareToIgnoreCase(String str) Parameters Str – String value for comparison. Return Value This method returns a negative integer, zero, or a positive…
Returns a new String of length numberOfChars consisting of the recipient padded on the left and right with space characters. Syntax String center(Number numberOfChars) Parameters Number – Number of characters…