This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Replace specific character in String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Replace specific character in String" Watch "Replace specific character in String" New topic
Author

Replace specific character in String

Shailender Dabodiya
Greenhorn

Joined: May 08, 2012
Posts: 3

How can I replace a specific character at a specified in a deifined or given String?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38517
    
  23
Go through the methods of the String class, and you should find something useful.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Replace specific character in String