Question: Assume that a program has the following declarations: Double number = 9.47; String str; Write a statement that assigns a string representation of the number
Assume that a program has the following declarations:
Double number = 9.47;
String str;
Write a statement that assigns a string representation of the number variable to str.
Step by Step Solution
3.31 Rating (142 Votes )
There are 3 Steps involved in it
To assign a string representation of the number variable to the str variable you need to convert the ... View full answer
Get step-by-step solutions from verified subject matter experts
