This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to print each string value

 
karthik swamy
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jkk
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder why did you put basic Java question in EJB certification forum... Neverthless I assume that some good bartender will move the topic to the right section and meanwhile:

Did you analyze the code and ask yourself what might be the problem?
Hint: how does your code is supposed to know that you want to print first, second, third, ... letter of the given word?

Cheers,

PS. Please use code tags to make your code more readable
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic