Code issuee , , , , , , , , , , , , , , , , , , , ,

i think my code is correct so can you check this!

import java.util.*; public class Main { public static void main (String args[]) { Scanner obj = new Scanner(System.in); int n=obj.nextInt(); int arr[] = new int[n]; for(int i=0; i<n; i++) { arr[i]=obj.nextInt(); } int m=obj.nextInt(); int arr1[] = new int[m]; for(int i=0; i<m; i++) { arr1[i]=obj.nextInt(); } int b=0,count=0,count1; if(arr.length>=arr1.length) { count1=arr1.length-1; int arr2[] = new int[arr.length]; for(int i=0; i<arr1.length; i++) { arr2[i]=arr[(arr.length-1)-i]+arr1[(arr1.length-1)-i]+b; if(arr2[i]>=10) { b=arr2[i]/10; arr2[i]=arr2[i]%10; } else { b=0; } count++; count1–; } int a=arr.length-arr1.length; a–; for(int i=a; i>=0; i–) { if(i==0) { arr2[count]=arr[i]+b; break; } else if(a>0) { arr2[count]=arr[i]+b; if(arr2[count]>=10) { b=arr2[count]/10; arr2[count]=arr2[count]%10; } else { b=0; } count++; } } for(int i=arr2.length-1; i>=0; i–) { System.out.print(arr2[i]+", “); } System.out.print(“END”); } else if(arr.length<=arr1.length) { int arr2[] = new int[arr1.length]; for(int i=0; i<arr.length; i++) { arr2[i]=arr[(arr.length-1)-i]+arr1[(arr1.length-1)-i]+b; if(arr2[i]>=10) { b=arr2[i]/10; arr2[i]=arr2[i]%10; } else { b=0; } count++; } int a=arr1.length-arr.length; a–; for(int i=a; i>=0; i–) { if(i==0) { arr2[count]=arr1[i]+b; break; } else if(a>0) { arr2[count]=arr1[i]+b; if(arr2[count]>=10) { b=arr2[count]/10; arr2[count]=arr2[count]%10; } else { b=0; } count++; } } for(int i=arr2.length-1; i>=0; i–) { System.out.print(arr2[i]+”, "); } System.out.print(“END”); } } }

reading this kind of code is very difficult and annoying. can you please save your code in codingblocks ide and send it to me…
thanks

its too long waiting for your reply. hope you resolved it yourself. if still have doubt, we can chat to fix the error. resolving it now.
thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.