Here you can find the source of deleteWhitespace(String string)
private static String deleteWhitespace(String string)
//package com.java2s; //License from project: Open Source License public class Main { private static String deleteWhitespace(String string) { return string.replaceAll("\\s", ""); }/*from w w w . ja va 2s .c o m*/ }