I have the following problem:
the code:
String a="Yeahh, I have no a idea what happening now!";
System.out.println(a);
a=a.replaceAll("a", "");
System.out.println(a);
Before deleting 'a', the result is:
Yes, I have no idea what is happening now!
Actual result: After removing "a", the result:
Yehh, I don’t see what is happening now!
Desired Result:
Yes, I have no idea what is happening now!
Can anyone give me some tips to achieve the desired result?
source
share