Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.regex.Matcher;
- import java.util.regex.Pattern;
- /**This method checks if the operands are integers.
- *
- * @param s tag.
- * @return check tag.
- */
- public boolean isInteger(final String s)
- {
- final Matcher mat;
- boolean check = true;
- mat = INTEGER_PATTERN.matcher(s);
- if(!mat.matches())
- {
- check = false;
- }
- return check;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement