Anyone help?
psychopixi Reviewed by psychopixi on . Iterating through the characters in a string (java) If anyone can offer help, I'd be very happy! :D I have to write a program in java for my coursework, and part of it involves reading in strings from a file. That's all fine and dandy. Once I have the string, I need to get the separate characters. For example, if my string is "otcl" I need to have "o", "t", "c" and "l". I know how to iterate through the string to get separate characters, but the length of the strings vary - from 1 to 6 characters. I need to get the separate characters, Rating: 5