+ 1

Who can help me return name without digits? Java

I want create method which will return name without digits, but no idea how realize few moments. Java

5th Jan 2020, 5:58 PM
Сотник Валентин
Сотник Валентин - avatar
2 Réponses
+ 6
Maybe using regex? getString(String x) return x.replaceAll("[0-9]", "") ;
5th Jan 2020, 6:07 PM
HNNX 🐿
HNNX 🐿 - avatar
0
Thanks for the answer, i later will try use the method.
5th Jan 2020, 6:16 PM
Сотник Валентин
Сотник Валентин - avatar