I have two array lists, one list is of strings and second of Toggle button.Now I want to compare the strings in two arrays.Please help me.
for(int i=0; i<arrayList1.size();i++){
            for (int j=0; j<arrayList.size();j++){
                Log.d("error in response:  ", "  " + arrayList.get(j).getText());
                Log.d("Tag" , arrayList1.get(i));
                if(arrayList1.get(i)==arrayList.get(j).getText()){
                    Log.d("Tag" , arrayList1.get(i));
                    Log.d("Tag" , String.valueOf(arrayList.get(j).getText()));
                    onCheckedChanged(arrayList.get(j), true);
                }
            }
        }
 
    