I didn't post code because of the several different ways to do it, the latter two are a bit complex. So here's the first possible way in pseudo-code
public void someFunction(){
String...
Type: Posts; User: copeg
I didn't post code because of the several different ways to do it, the latter two are a bit complex. So here's the first possible way in pseudo-code
public void someFunction(){
String...
Several ways to do this depending upon the behavior you want. First you can just validate the user input before using Integer.parseInt (see...