Void methods cannot return a value

前端 未结 10 2195
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 01:38

I\'m following the CS106A lectures online. I\'m going through the code on Lecture 12, but it\'s giving me errors in Eclipse.

This is my code. It seems the error is beca

10条回答
  •  南笙
    南笙 (楼主)
    2021-01-23 01:43

    nested method defining is not allowed in java .You have defined your method toLower() inside main method

提交回复
热议问题