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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #strip #trailing #spaces #java
ADD COMMENT
Topic
Name
5+2 =