aspose file tools*
The moose likes Applets and the fly likes Is it possible to replace a character in a string with a polygon? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Is it possible to replace a character in a string with a polygon?" Watch "Is it possible to replace a character in a string with a polygon?" New topic
Author

Is it possible to replace a character in a string with a polygon?

Hayles Berry
Ranch Hand

Joined: Dec 16, 2012
Posts: 32
Hello.

I was wondering if it was possible to replace a character with a polygon, in any instance of that character's occurrence in a string?
For example, if I typed-in the word 'Holly' and hit 'enter', the first letter would be replaced by the polygon.
If I then went to type the word 'thistle', the polygon's new position would be in place of the second letter?

This is my code fragment, the character I want to replace is called sl1.



Any help/guidance will be greatly appreciated.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is it possible to replace a character in a string with a polygon?