Friends ,i am in trouble inside this program,please help me🙌🙌🙏🙏
import java.util.Scanner; public class mnb{ public static boolean equal(int []k,int []h){ if(k.length != h.length); return false; for (int i=0 ; i<h.length;i++){ if(k[i] != h[i]) return false; } return true; } public static void main(String[]args){ Scanner input=new Scanner(System.in); System.out.print("The value of n is "); int n=input.nextInt(); int a[]=new int[n]; for(int i=0;i<a.length;i++){ System.out.println("a[" + i + "]="); a[i]=input.nextInt(); } System.out.print("The value of m is "); int m=input.nextInt(); int b[]=new int[m]; for(int i=0;i<b.length;i++){ System.out.println("b[" + i + "]=" ); b[i]=input.nextInt(); } System.out.println("Array of a and b" + (equal(a,b) ? "are same" : "are different")); } }