Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Viewing all articles
Browse latest Browse all 505

Java StringBuffer Methods: setCharAt() Example

$
0
0
To manipulate string, java.lang.StringBuffer class comes with many methods, otherwise, which will take long laborious coding as in C/C++. One such method is setCharAt(int, char) that replaces a single character in the string buffer. What Java API says: public synchronized void setCharAt(int index1, char1): Replaces the character in the StringBuffer at index number index1 with […]

Viewing all articles
Browse latest Browse all 505

Trending Articles