Tag Archives: Padding

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 : […]

append(x) in JAVA – JAVA 10th Class notes – ICSE JAVA Note

append(x) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes append(x ) : append(x ) function lets you add String x at the end of the other String. Syntax : str1.append(str2); Example : StringBuffer str1 = new StringBuffer(“COMPUTER”); StringBuffer str2 = new StringBuffer(“ APPLICATION”); str1.append(str2);   Output : COMPUTER APPLICATION   /* Program […]