The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Converting characters in a string???

Posted by metallo on August 29, 2001 at 9:49 AM

Here's a program description:

1)user enters a string: "Java Rules"
2)then enters a string containing
characters to be converted: "ae s" (characters in this case are 'a' 'e' '' and 's')
3)user then enters an output character that the characters to be converted will be converted to:"$"

therefore the string "Java Rules" will become "J$v$$Rul$$"

can anyone suggest an efficient algorithm to deal with this problem?


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us