Can you explain the conclusion
String str = "Total Amount is AMOUNT"; String amount = "$10.00"; str = str.replaceAll("AMOUNT", amount); System.out.println(str);
What is the conclusion? This excludes
Exception in thread "main" java.lang.IndexOutOfBoundsException: No group 1
By removing $ his work. Why?
source share