This:
input.replaceAll(" ", "").toCharArray()
Probably better to use length()
to count the chars though…
7
solved How to convert String to char array without spaces in Java?
This:
input.replaceAll(" ", "").toCharArray()
Probably better to use length()
to count the chars though…
7
solved How to convert String to char array without spaces in Java?