devxlogo

Transform a String into IntStream

Transform a String into IntStream

Returning a stream of int zero-extending the char values from a String can be done via chars():

String str = "hello world";IntStream chars = str.chars();

devx-admin

Share the Post: