String to Character Array for loop in Java

less than 1 minute read

Example

String code = "25114";
for(char ch : code.chars().mapToObj(a -> (char)a).collect(Collectors.toList()))
  ........

Tags:

Updated: