Tag Archives: Computer Fun

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

Character is ends with (Stringstr str) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes

Character is ends with (Stringstr str) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes   endsWith(String str) : endsWith(String str) function is used to check whether a given string has specified suffix or not. It returns a Boolean type value. Syntax : boolean b = str.endsWith(str_suffix); Example : String str = “ […]