Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isWholeNumber(String string) {
if (string != null && !string.trim().isEmpty()) {
return string.matches("\\d*");
}
else {
return false;
}
}
}