Missing Return Statement?

后端 未结 6 1207
半阙折子戏
半阙折子戏 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:07

    You just forgot to put return jobsFinished; after the end of the System.out.print line. When you do, it should run and compile successfully, which I am sure of because I made the same mistake today :P

    Good luck.

    -Keelen

提交回复
热议问题