dear programmers,
i need help with one of my java program. the program should ask the user to enter a sentence and the then return the number of repeated characters in a row. as a example if the user enter "myy naame is joshh"the user should return "3 repeated characters" i dont need the whole program but help me with how i can count repeated number of characters in a row. Thank you
sanam_1 0
Newbie Poster
Recommended Answers
Jump to PostCheck out the string class dude...character parsing and such
All 4 Replies
rickster11 0
Light Poster
sanam_1 0
Newbie Poster
rashedbd789 0
Newbie Poster
stultuske 1,116
Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.