@@ -0,0 +1,306 @@
+import java.util.*;%0Apublic class Space_removal%0A%7B%0A    public static void main(String %5B%5Dargs)%0A    %7B%0A        Scanner scan = new Scanner(System.in);%0A        String str = scan.nextLine();%0A        for(int i=0;i%3Cstr.length();i++)%0A            str=str.replaceAll(%22  %22,%22 %22);%0A        System.out.println(str);%0A    %7D%0A%7D%0A

Create Space_removal.java