For this Question: There are two number a and b are given as input. Print common digits with common index in these numbers seperated by space.There are two number a and b are given as input.

<b>Constraints</b>
1 <= a, b <= 10<sup>6</sup>Print common digits with common index in these numbers seperated by space.Sample Input:
24324345 3546434
Sample Output:
4 3 4, I have written this Solution Code: import java.util.*;

public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        String s1=Integer.toString(a);
        String s2=Integer.toString(b);
        int m=Math.min(s1.length(), s2.length());
        for(int i=0;i<m;i++){
            if(s1.charAt(i)==s2.charAt(i)){
                System.out.print(s1.charAt(i));
                System.out.print(" ");
            }
        }
        System.out.println("");
        return;
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?