Tutorials

String Class Methods in Java

equalsIgnoreCase() We use this method to perform the case insensitive comparison between 2 strings. Prototype: public boolean equalsIgnoreCase(String str) Example: String str = “STEVE”; String s = “steve”; System.out.println(str.equals(s)); //output will be “true” subString() This method returns the sub string beginning at the given index to the end of the string. Prototype: public String subString(int …

String Class Methods in Java Read More »