KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
It's quite straight forward in java to parse number from String, i.e. with Integer.parseInt(s) if string in the format 'n' or '-n' , but unfortunately it fails to parse string in the format of '+n' . So what is the most effective/elegant way to parse number from string in java if it contains positive or negative prefix: '+n' or '-n' ?
Tags (comma-separated)
Save Edits
Cancel