What's the problem on line 18 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st Jan 2018, 6:31 PM
Raphael Shay
Raphael Shay - avatar
2 Answers
+ 1
Nothing. You just can’t leave the input field empty. You could use try and catch statements to check if the user left it empty or not. You must make the x variable public and declare it outside changeFromCapitals() function. Else you will get error on line 46
31st Jan 2018, 11:41 PM
Toni Isotalo
Toni Isotalo - avatar
+ 2
shouldn't not be in front of x?
31st Jan 2018, 7:32 PM
Kuba H
Kuba H - avatar