java delete

delete() StringBuffer Example

Deleting a group of characters with delete() StringBuffer 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 delete(int, int) that deletes a group of characters. What Java API says of delete() StringBuffer: public synchronized java.lang.StringBuffer delete(int…