Tag Archives: String Conversion

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);   […]

valueOf(all types) JAVA – JAVA 10th Class notes – ICSE JAVA Notes

valueOf(all types) JAVA – JAVA 10th Class notes – ICSE JAVA Notes valueOf (all types) : valueOf (all types) function converts from String to the primitive datatype.   Note : Conversion from String to primitive datatype is only possible when it contains number (digit). If this function is used with Alphabets or Alpha numeric String […]