Reputation: 23
Suppose the given word is" connnggggggrrrraaatsss" and we need to convert it to congrats . Or for other example is "looooooovvvvvveeeeee" should be changed to "love" .
Here the given words can be repeated for any number of times but it should be changed to correct form. We need to write a java based program.
Upvotes: 0
Views: 90
Reputation: 757
You cannot really check for every word because there are certain words which have more than 1 alphabets in their spelling. So one way you could go is -
Upvotes: 2