please help!
ASAP ASAP ASAP
thanks!
Home
/
Computer Science
/
please help!ASAP ASAP ASAPthanks!
please help!
ASAP ASAP ASAP
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Given Códe:-
String s="1001";
int x=Integer.valueOf(s);
double y=Double.valueOf(s);
System.out.println("x="+x);
System.out.println("y="+y);
Required Output:-
1001
1001.0
Explaination:-
valueOf() returns the integer number present in the string.
Note:-