A while loop would work in this scenario, looping until the year string validates. Rather than catching the exception, you could simply validate the string. For example in pseudo-code:
String...
Type: Posts; User: copeg
A while loop would work in this scenario, looping until the year string validates. Rather than catching the exception, you could simply validate the string. For example in pseudo-code:
String...