Removing spaces, numbers and special characters from a String in Java

后端 未结 0 552
死守一世寂寞
死守一世寂寞 2021-01-19 21:49

I am writing a function to remove spaces from a String passed as an argument.

This code works:

public static String removeSpecialChars(String str) {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题