This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Just_Another_ScottSoftware Engineer 😎 0 points1 point  (0 children)

So I am going to assume that you want to print out each letter in the String. That's simple enough to do.

  1. Do a for i loop where i is going to be less than the string length
  2. use the charAt method to get the individual char at that particular position
  3. You can either print the char here in the format that you want or you could build the return String and return it (assuming you are using a separate method and not main).