Can you multiply strings in Java?

Can you multiply strings in Java?
Answer
replace() in Java. The first method to multiply a string is to use the replace() function of the String class. This replace method accepts two arguments; the first one is the target, which is the string that we want to be replaced, and the second one is the replacement string.
 

Tìm kiếm

Back
Top