Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to strip trailing spaces in java

String str = new String(" apples ");
str.trim(); // result is a nes string "apple"
 
PREVIOUS NEXT
Tagged: #strip #trailing #spaces #java
ADD COMMENT
Topic
Name
2+7 =