Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if an int is a string java

try{
  int num = Integer.parseInt(str);
  // is an integer!
} catch (NumberFormatException e) {
  // not an integer!
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #int #string #java
ADD COMMENT
Topic
Name
3+6 =