If a method doesn't return any value,you should use the return type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

If a method doesn't return any value,you should use the return type

23rd Nov 2016, 1:43 PM
Kowsalya A
Kowsalya A - avatar
6 Answers
+ 4
You return void.
23rd Nov 2016, 2:29 PM
scott johnson
scott johnson - avatar
+ 4
void
15th Feb 2017, 6:57 PM
doug
+ 2
void
17th Dec 2018, 12:03 PM
Ananthakumar.B
Ananthakumar.B - avatar
+ 1
return is not a type...
30th Nov 2016, 8:11 AM
TylerFrost
TylerFrost - avatar
+ 1
void
6th Apr 2019, 3:40 PM
Mario Alfonso Saucedo Gomez
Mario Alfonso Saucedo Gomez - avatar
+ 1
void
30th Jul 2020, 7:37 PM
Moayad Abo Rya