public class NumberTools extends Object
Constructor and Description |
---|
NumberTools() |
Modifier and Type | Method and Description |
---|---|
static int |
parseInteger(String str, int defValue)
Attempts to parse an integer and provides a default if it fails.
|
public static int parseInteger(String str, int defValue)
str
- string to be parseddefValue
- default value if parsing fails