Java-Extracting Character

Extracting Character The charAt( ) method of StringBuffer class enables us to extract at the specified index position. For example, in the following program, the character at the index position ‘3’ in the string “ABCDE” is ‘D’, the output statement will return the character ‘D’. The setCharAt( ) method of StringBuffer class enables us to … Read more…