Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author Cujo
- */
- public class Validate
- {
- static boolean intCheck(String input)
- {
- boolean check = true;
- try
- {
- Integer.parseInt(input);
- }
- catch (Exception e)
- {
- System.out.println("Not an integer!");
- System.out.println("Bad stuff is happening.");
- check = false;
- }
- return check;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement