Can I ensure that data is only accepted inside a inputDialog if it is an integer, and if not display an error message?
Because at the moment I get errors in the general output screen if somebody doesn't put an integer inside, because it tries to parse string into an integer.
So I need some validation, so that it only parses the string into an integer if it is an integer! else it should display an error. If you understand !