Cannot Return a Value From Method Whose Result Type Is Void
This Java error occurs when a void method tries to return any value, such as in the following example:
Often this is fixed by changing to method signature to match the type in the return statement. In this case, instances of void can be changed to int:
0 Comments
Post a Comment