HOME      BLOG       FORUMS      CONTACT       ABOUT

Replaces a character of a StringBuffer

Replaces a character of a StringBuffer

public class StringBufferExample {
	public static void main(String[] args) {
		StringBuffer buff = new StringBuffer("Hello World");
		buff.setCharAt(1, 'E');
		
		
		System.out.println(buff);
	}
}

Share

Tags: , , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply