I would like to check if a string consists only of integer characters (i.e. is a number) or if it's a word. I can use Integer.parseInt(mystring);, but the only thing I found about this is that I have to do the try-catch construction, which, unfortunately, at least in the Eclipse dev platform is errored out as some "init function has to be at the start" or something message.... any ideas?

thanks!