Java Program to Remove all WhiteSpace from a String
public class SpaceRemove
{
public static void main(String[] args)
{
String str="he is a good boy";
System.out.println(str.replaceAll("\\s+",""));
}
}
Welcome to our official platform. Explore articles, updates, and resources shared regularly.
Feel free to reach out to our team for any inquiries or support.
Email: contact@domain.com