Convert String to Char Array

Harinath
17.6K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Using String.toCharArray()

Use String.toCharArray() to convert a String into a char array

Convert String to Char Array Using Java 8 Stream

Use .chars() to get the IntStream, and convert it to Stream Char using .mapToObj

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content