Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

stringbuilder example in java

public static void main(String args[]){
  	
	StringBuilder sb=new StringBuilder("Hello "); //init 		
	sb.insert(1,"Java");//now original string is changed  
	System.out.println(sb);//prints HJavaello  
}  
 
PREVIOUS NEXT
Tagged: #stringbuilder #java
ADD COMMENT
Topic
Name
8+3 =