How to match a value of an array with another value in another array in Java?

0

I know how to get the value of an array position and compare the array values. As per the code below.

for (int i = 0; i < listadosWifi.size(); i++) {
        /* pega o SSID e o BSSID */
        providerName = "\n"+(listadosWifi.get(i).SSID).toString()+ "\n"+(listadosWifi.get(i).level);
        listViwProvider = (ListView) findViewById(R.id.list_view_wifi);
        listaFornecedores.add(providerName);
        t1.speak("Redes Disponíveis: " + providerName, TextToSpeech.QUEUE_ADD, null, null);
        t1.setPitch(1);

            if (listadosWifi.get(i).level < -10 && listadosWifi.get(i).level > -50 ) {
                t1.speak("Você está próximo de: " + providerName, TextToSpeech.QUEUE_FLUSH, null, null);
                t1.setPitch(1);
                if(listadosWifi.get(i).level < -50){
                    t1.speak("Você está próximo de: " + providerName, TextToSpeech.QUEUE_FLUSH, null, null);
                    t1.setPitch(1);
                }
          }             
}

Now I want to match 1 value that is in 1 array with another value from another array, even if they change order. Because I want to do a real-time match. How can I do this and use thread to update periodically?

    
asked by anonymous 15.09.2016 / 14:17

0 answers