Class CheckIfStringIsInteger

java.lang.Object
javatapas.string.CheckIfStringIsInteger

public class CheckIfStringIsInteger
extends Object
Version:
2021-05-01
Author:
Kodiak Brown
See Also:
https://stackoverflow.com/questions/5439529/determine-if-a-string-is-an-integer-in-java
  • Constructor Details

    • CheckIfStringIsInteger

      public CheckIfStringIsInteger()
  • Method Details

    • checkIfStringIsInteger

      public static boolean checkIfStringIsInteger​(String inStr)
      Parameters:
      inStr - The string to be evaluated as an integer.
    • checkIfStringIsInteger

      public static boolean checkIfStringIsInteger​(String inStr, int radix)
      Parameters:
      inStr - The string to be evaluated as an integer.
      radix - Indicates the numeral system to use (default is Base 10).