I need help! . Now the problem in the above code is if the user enters a different type of value in [splitted[3]] its gonna throw up a runtime error. Now i know im supposed to catch an exception, but which exception do i catch??Code:else if (splitted[0].equals("!removepoints")) { int repoints = Integer.parseInt(splitted[3]); victim.removePoints(repoints); mc.dropMessage(repoints+" points removed from "+victim.getName()+"'s account"); }




Reply With Quote