0
Java Output
Hi im A learner wants to learn and take notes on challenge questions guess at least 5 a day if its okay to you guys can you guys explain to me what happens to this code?need a clearer insight.tnx in advance😀 i actually expected 100 is the answer because i is not initialized with a value https://code.sololearn.com/c2BL7cwqTsED/?ref=app
6 Respuestas
+ 1
inValue() returns the int's value. The double takes the int's value on line 6 and turns it into a double.
+ 2
At line 7 (the print statement) the two values are being added together thats why its 200 not 100
0
tnx,but i guess i need more info what does intValue() method does?
0
its downcasted right?
0
yup
0
thank you!noted📖📃