Tag Archives: String Functions

JAVA Assignments – Strings in JAVA 10th Class notes – ICSE JAVA Notes

JAVA Assignments – Strings in JAVA 10th Class notes – ICSE JAVA Notes Important Questions What is the difference between a String object and a String Buffer object ? What do the following functions return for : String x = “Hello”; String y= “World”; System.out.println(x+y); System.out.println(x.length()); System.out.println(x.charAt(3)); System.out.println(x.equals(y)); Differentiate between toLowerCase() and toUpperCase() methods ? […]

toString() JAVA – JAVA 10th Class notes – ICSE JAVA Notes

toString() JAVA – JAVA 10th Class notes – ICSE JAVA Notes toString( ) : toString( ) function converts the primitive data type to the String type. This conversion is important to apply the string functions on digits of the numbers.   Integer type to String type Conversion : Syntax : String res = Integer.toString(int);   […]

String function in JAVA – JAVA 10th Class notes – ICSE JAVA Notes

String function in  JAVA – JAVA 10th Class notes – ICSE JAVA Notes   STRING FUNCTIONS : Some of the String functions are : S.No. String Functions charAt(int index) compareTo(String str) concat(String str) / str1+str2+…. endsWith(String str) equals(String str) equalsIgnoreCase(String str) indexOf(char ch) lastIndexOf(Char ch) length() 10. replace( char oldcch, char newch) 11. startsWith(String str) […]