There is no need to use parseInt , as it will put the result in the collection, and as @Misha said, you can use Arrays.stream to create the stream. Therefore, you can use the following:
Arrays.stream(myStringNumbers).map(Integer::decode).collect(Collectors.toList());
Please note that this does not do any error handling (and numbers should not start with 0 , # or 0x unless you want surprises). If you need only basic 10 numbers, Integer::valueOf is the best choice.
source share