Answer to Question #51022 in Java | JSP | JSF for Charles Wang

Question #51022
How do I choose and edit a specific class that is in a java library using the str.replace method?
1
Expert's answer
2015-03-02T09:04:17-0500
public String replace(char oldChar, char newChar)
This method returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.
Therefore it is only possible to modify only argument of class methods.
To modify library class you may use inheritance and replace library class with your own class.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS