I have to get characters of a String for my homework but the only library I can use is Java.IO for this. I need to have characters of a String which is given as a parameter and I can't use different libraries then IO library. Any suggestion about it?
Asked
Active
Viewed 53 times
0
-
`"mystring".toCharArray()` – c0der Jan 22 '22 at 13:17
-
Either use `String.charAt`, or wrap it in a `StringReader` – Mark Rotteveel Jan 22 '22 at 13:18
-
Unclear what you mean, just `theString.toCharArray()`? What have you tried? – Roger Lindsjö Jan 22 '22 at 13:19