0

Hey
can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this?

I've got it replacing "a" but can't get it to replace the rest i.e. b to z

any help would be appriaciated.

show = pickWord.replaceAll("a"," _ ");
1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by toomuchfreetime
0

Thanks
Anyway i just figured it out. Its alwas the way. wrecking my head for ages and once i post it i figure it out myself.

show = pickWord.replaceAll("[a-z]"," _ ");
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.