Question: 5. Given the following code: String s1 = 2021, s2 = 20.2; int n1; double n2; //Use the proper java class method to store the
5. Given the following code: String s1 = "2021", s2 = "20.2"; int n1; double n2; //Use the proper java class method to store the value of s1 in n 1 and s2 in n2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
