SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use Scanner :
Scanner s = new Scanner(MyString); s.nextInt();