Java - I would like to make a year validation

前端 未结 0 1163
再見小時候
再見小時候 2021-01-13 21:31

I would like to make a year validation like this

if (currentYear (i need to get the current year) - 5 years) is true { throw Exception }

Lets say current year

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