How to avoid two or more returns in Java method

前端 未结 0 659
悲哀的现实
悲哀的现实 2020-11-28 01:53

I have this method which validates a string.

In my assignment I can\'t have more than 1 return in a method.

How can I make this method in a way to return only

相关标签:
回答
  • 消灭零回复
提交回复
热议问题