|
Java™ by example!
|
|
|
How do I convert a character array to a Reader?
Use the class CharArrayReader. Once you have wrapped it into a reader, you can use other readers to access the data, as shown in following example. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|