java remove space at the end of string

54

java 8 remove spaces from string -

a.replaceAll("\\s+","");

Comments

Submit
0 Comments