Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isRealNumber(String paramString) {
String regex = "^(0|[1-9][0-9]*)(\\.[0-9]+)?$";
if (paramString.matches(regex)) {
return true;
} else {
return false;
}
}
}