Computer Applications
Write a statement each to perform the following task on a string:
Convert a number stored in a string variable x to double data type.
Java String Handling
ICSE 2011
35 Likes
Answer
double a = Double.parseDouble(x);
Answered By
24 Likes
Related Questions
Write a statement for each to perform the following task on a string:
Check if the second character of a string str is in upper case.
Write a statement each to perform the following task on a string:
Find and display the position of the last space in a string s.
How does endsWith() and startsWith() differ? Explain with an example.
Describe the purpose and write the syntax of toUpperCase() function.