

a1.equals(a2);
FORMAT: This method gives ‘true’ if a1 string is equal to a2. a2=a1.toLowerCase;
(vi). length();
USAGE: FORMAT:
This function/method converts all the
a1.length();(ii). toUpperCase;
FORMAT:
a2=a1.toUpperCase;
USAGE:

This function returns the length of characters present in the string.

(vii). ChartAt();
FORMAT:
USAGE:

a1.ChartAt(n);This function/method is used to convert all USAGE:
the characters of the string a1 into
uppercase. This function/method returns nth character of the (iii). replace();string a1.
(viii). concat();
FORMAT:
FORMAT:
a2 = a1.replace(‘n’,’m’); USAGE:

a1.concat(a2);
USAGE:
This function replaces all the occurances of the character ‘n’ with ‘m’ in the string a1. (iv). trim();
This function concatenates a1 and a2 strings.

(ix). substring()


FORMAT:
FORMAT:
a1.substring(n);
a2=a1.trim();USAGE:
USAGE: This function is used to remove all This returns substring starting from the nth
the white spaces at the beginning and end of character of the string a1.
the string a1.
attention@computerscienceexpertise.com

















