
Could someone answer in netbeans please.
Write a method that takes two String arrays as parameters and checks if they are identical. Write a program that takes in a series of strings from the user and stores them in an array. The program should compare this array to a hard-coded array and display whether or not the two are identical. Your program should ignore case.

import java.util.*;
class CheckTwoStringArrays{
public static boolean checkArrays(String[] array1, String[] array2){
boolean check = false;
for(int i=0;i<array1.length;i++){
for(int j=0;j<array2.length;j++){
if((array1[i].equalsIgnoreCase(array2[j]))){
check = true;
break;
}
}
}
return check;
}
public static void main(String[] args){
String array1[]={"AAAA","BBBB","CCCC","DDDD","EEEE"};
Scanner input=new Scanner(System.in);
String array2[]=new String[array1.length];
System.out.println("Enter array elements:");
for(int i=0;i<array2.length;i++){
array2[i]=input.next();
}
if(checkArrays(array1,array2)){
System.out.println("Arrays are identical");
}
else{
System.out.println("Arrays are not identical");
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.