aspose file tools
The moose likes Beginning Java and the fly likes Converting specific characters in a string Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Converting specific characters in a string

Bob Lomax
Greenhorn

Joined: Aug 25, 2001
Posts: 11
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' '<space>' 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?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
This is in Intermediate. Please do not cross post.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting specific characters in a string
 
Similar Threads
Passing string to wrapper classes
Converting specific characters in a string
Converting to Upper Case
Converting specific characters in a string
q from jiris.com