0
Why does this code return more than the Square of the number?
https://code.sololearn.com/ckmu5kie8C5L/?ref=app https://code.sololearn.com/ckmu5kie8C5L/?ref=app
3 Answers
+ 6
throws java.io.IOException is not a correct mechanism to get the integer values. Instead use Scanner class facilities to do so.
+ 4
You also forgot the 't' in println.
(line 9)
0
I haven't gone through the course at all. I found the throwing exception thing at an example and modified it to my own use thank for your help Tobias