InterviewSolution
Saved Bookmarks
| 1. |
Write a statement for each of the following : (i) Store a number 275 as a string. (ii) Convert the string to a numeric value. (iii) Add it to the existing total of 1000 to update the total. |
|
Answer» (i) String s=“275”; (ii) int a=Integer.parseInt(s); (iii) total=1000+a; |
|