SyntaxFix
Write A Post
Hire A Developer
Questions
Another short way:
int[] myIntArray = Arrays.stream(myStringArray).mapToInt(Integer::parseInt).toArray();