Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

remove spaces java

public class StringSpaces {
  public static void main(String[] args) {	
    String str = "  Hello    World		";
    str = str.trim();
    System.out.println("String- " + str);
  }
}
Source by knpcode.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #java
ADD COMMENT
Topic
Name
3+7 =