ICSE Class 10 Computer Applications
Question 3 of 36
String Handling — Question 3
Back to all questions 3
Question Question 3
How can you convert a numeric value enclosed in a string format ?
We can convert a numeric value enclosed in a string format into a numeric value by using valueOf() method.
For example, the given statement will return the numeric value of the String argument "15".
int num = Integer.valueOf("15");