This is code of seafight from
Java Head First. I hope you guys know him, because I can describe all of this. This code works fine but I can't understand what exactly is going on in this
string: 94
int index = locationCells.indexOf(userInput);
Here's my poor explanations:
We have a int value "index". We are call to variable of ArrayList and say to this variable that she ought to define index of userInput. Is this correct?