• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 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

javareplaceall
26th Jul 2019, 8:40 AM
Amir01
Amir01 - avatar
5 odpowiedzi
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
How my gradient is so mess I code in vscode and copied here to ask some questions please help me with this one too
1 Votes
HELP ME LEARN
1 Votes
Please tell me about methods
1 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
2 Votes
Can I learn both graphic design and web development at the same time?
0 Votes
I am beginner in CS, how I learn C++?
0 Votes
How do i learn php in here?
1 Votes
Hi everyone I hope you’re well
0 Votes
Running of python or js script (backend) and entering of html page by clicking SUBMIT button
2 Votes
Anyone’s make one brut force attack tools password breaker
0 Votes