I want to replace these lines: - http://fitness.com/gorilla-bumpers- http://www.fitness.com/gorilla-bumperswith the expression "Product: gorilla-bumpers".
I have the following code:
final String url = eElement.getElementsByTagName("url").item(0).getTextContent();
final String qty = eElement.getElementsByTagName("quantity").item(0).getTextContent();
String product = url.replace("http://fitness.com/", "Product: ");
System.out.println(product + " was added to the cart with Qty = " + qty);
How to add another replacement in Java? Several delivery options will be appreciated. thank you
source
share