@@ -0,0 +1,905 @@
+import java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0A%0Aclass stringmatch %7B%0A       public static void main(String a%5B%5D)throws Exception%0A    %7B%0A        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));%0A        int no=Integer.parseInt(in.readLine()),len,count=0;%0A        String str,str1;%0A        StringBuilder sb = new StringBuilder();%0A        for(int i=0;i%3Cno;i++)%0A        %7B%0A            str=in.readLine();%0A            str1=in.readLine();%0A           %0A            if(str1.length()%3Estr.length())%0A                len=str.length();%0A            else%0A                len =str1.length();%0A            for(int j=0;j%3Clen;j++)%0A            %7B%0A                    if(str.charAt(j)==str1.charAt(j))%0A                        count++;%0A                %0A            %7D%0A            sb.append(count+%22%5Cn%22);%0A               count=0;%0A           %0A        %7D%0A        System.out.println(sb);%0A    %7D%0A    %0A%7D%0A

Create stringmatch.java