How to check if a String is numeric in Java

0 votes
How would you check if a String was a number before parsing it?