Package javatapas.string
Class CheckIfStringIsInteger
java.lang.Object
javatapas.string.CheckIfStringIsInteger
public class CheckIfStringIsInteger extends Object
Check if the value of a String variable is an Integer value.
Published at https://www.javatapas.com/string/Java-Check-If-String-Is-Integer.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/CheckIfStringIsInteger.html
Published at https://www.javatapas.com/string/Java-Check-If-String-Is-Integer.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/CheckIfStringIsInteger.html
- Version:
- 2021-05-01
- Author:
- Kodiak Brown
- See Also:
- https://stackoverflow.com/questions/5439529/determine-if-a-string-is-an-integer-in-java
-
Constructor Summary
Constructors Constructor Description CheckIfStringIsInteger()
-
Method Summary
Modifier and Type Method Description static boolean
checkIfStringIsInteger(String inStr)
static boolean
checkIfStringIsInteger(String inStr, int radix)
-
Constructor Details
-
CheckIfStringIsInteger
public CheckIfStringIsInteger()
-
-
Method Details
-
checkIfStringIsInteger
- Parameters:
inStr
- The string to be evaluated as an integer.
-
checkIfStringIsInteger
- Parameters:
inStr
- The string to be evaluated as an integer.radix
- Indicates the numeral system to use (default is Base 10).
-