For this Question: Write a recursive program to remove all tabs or spaces from a string.The first line contains the string s.

Constraints:
0<len(s)<=100Prints the string after removing all the tabs and spaces.Sample Input:
Hello World

Sample Output:
HelloWorld

Explanation:
The string "Hello World" after removing spaces is "HelloWorld"., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    public static void main (String[] args) {

                      try{
                      int n=0;
                      BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
                      String inputString=br.readLine();
                      removeSpaces(inputString,n);
                      }
                      catch(Exception e){

                      }

    }
    public static void removeSpaces(String inputString,int n){
         if(n>inputString.length()){
           return;
         }
          if(n<inputString.length()&& ((inputString.charAt(n)!=' ') ))
          {
              System.out.print(inputString.charAt(n));
              removeSpaces(inputString,n+1);
          }
          else if(n<inputString.length()){
              removeSpaces(inputString,n+1);
          }

    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?