Missing Return Statement?

后端 未结 6 1150
半阙折子戏
半阙折子戏 2021-01-25 20:52

This is my code. when I compile using bluej it highlights the last } and says missing return statement. I cant put void because it is a boolean. ANy ideas?

 p         


        
6条回答
  •  无人及你
    2021-01-25 21:13

    Change your function definition/prototype... Use this public void runAJob() instead of what you have used...

    Replace boolean with void in the prototype.. And then try

提交回复
热议问题