Tag Archives: Fun System

insert(offset, x) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes

insert(offset, x) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes insert(offset, x) : insert(offset, x) function allows you to insert a String at the specified index into the another String. Syntax : str1.insert(index, str2); Example : StringBuffer str1 = new StringBuffer(“COMPUTER FUN”); StringBuffer str2 = new StringBuffer(“ IS”); str1.insert(8,str2);   Output : […]