0
Does void necessary?
If I do not write use void for methods without return value, will it cause problems/errors?
2 odpowiedzi
+ 42
Yes, it's necessary for define methods (functions that has not return) in Java.
+ 1
The correct way is use void for methods, and data-type for functions.