77 961
Assignments Done
Successfully Done
In August 2019

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?
Expert's answer
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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions