+ 1

Why output of this code is 9955?

I don't know why output of this code is 9955! The code: String s = "java99sl55"; System.out.println(s.replaceAll("[^0-9]","")); Who can explain it to me? https://code.sololearn.com/cjhnPouItK3l/?ref=app

26th Jul 2019, 8:40 AM
Amir01
Amir01 - avatar
5 Antworten
+ 1
Tax! Your answer was helpful.
26th Jul 2019, 8:50 AM
Amir01
Amir01 - avatar
0
Is it for ^ ?
26th Jul 2019, 8:46 AM
Amir01
Amir01 - avatar