You don't provide any code, so the question is a bit out of context. Do you mean you need to check if a String is a valid int? Then you can a) loop over all the chars and check if each one matches...