+ 1

How to remove white spaces from string in java using function

30th Jan 2021, 10:30 AM
Fiza Khan
Fiza Khan - avatar
2 Answers
+ 7
You can read about the replaceAll method.
30th Jan 2021, 10:38 AM
Minho
Minho - avatar
+ 3
Atul lol.. there is no Character.Whitespace method in java. It's Character.isWhiteSpace, which will check if the char value is a white space or not.
31st Jan 2021, 4:00 AM
Minho
Minho - avatar