Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to remove spaces from an array in java

for (int i = 0; i < temp.length; i++){
    temp[i] = if(!temp[i].trim().equals("") || temp[i]!=null)temp[i].trim();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #array #java
ADD COMMENT
Topic
Name
2+6 =