Java arraylist. I need to pass random numbers to an array list and pass them to another class to check those numbers against another set of numbers -
i confused passing arraylist values 1 class another. used array in these classes before. changed arraylists. i have 2 classes. class has arraylist called "locationcells". programs 3 random digits class , uses inputs , check if inputs match 3 digits. it's more guessing game. import java.util.arraylist; class simpledotcom { private arraylist<string> locationcells; public void setlocationcells(arraylist<string> locs) { locationcells = locs; } public string checkyourself(string stringguess) { string result = " miss"; int index = locationcells.indexof(stringguess); if (index >= 0) { locationcells.remove(index); if (locationcells.isempty()) { result = "kill"; } else { result = &