Hello, I have recently started studying Head First Java to appear for SCJP exam. I am stuck near an issue with the code for SinkADotCom game .. please help me make this code run...

The Game needs to do this:
1. Make a Single SimpleDotCom Object.
2. Make a location for it. (3 consecutive cells on a single row of 7 virtual cells)
3. Ask the user for a guess.
4. Check the guess.
5. Repeat until the dotcom is dead.
6. Tell the user how many guesses it took.
**This is the Main Class

Java Code:
//import java.util.Scanner;
import java.util.ArrayList;
import java.util.Random;
class SimpleDotComTestDrive1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		//Scanner myScanner = new Scanner(System.in);
		Random rand = new Random();
		int numOfGuesses=0;
		GameHelper helper = new GameHelper();
		DotCom thedotcom = new DotCom();
	 	int randomNum = rand.nextInt(4)+1;
		System.out.println("The random number is : " + randomNum);
		int[] locations = {randomNum,randomNum+1,randomNum+2};
		thedotcom.setLocationCells(locations);                                      //Tag 1
/** [B][I]Here is where it shows the error as [/I][/B]   
[QUOTE]The method setLocationCells(ArrayList<String>)
 in the type DotCom is not applicable for
 the arguments (int[])

Also the GameHelper class only contains a method to take 
the userInput, so we do not need to worry about it here.[/QUOTE]*/


		boolean isAlive = true;
		while(isAlive == true)
		{
			System.out.println("Enter a number b/w 1 and 7");
			//String guess = myScanner.nextLine();
			String guess = helper.getUserInput("Enter a number: ");
			String result = thedotcom.checkYourself(guess);
			numOfGuesses++;
			if(result.equals("kill"))
			{
				isAlive = false;
				System.out.println("You took "+ numOfGuesses + " guesses.");
			}
		}

	}

}

Here is the second class


Java Code:
import java.util.ArrayList;
public class DotCom {
	private ArrayList<String> locationCells;
	
	public void setLocationCells(ArrayList<String> locs)
	{
		locationCells = locs;
	}
	
	public String checkYourself(String userInput)                   //Tag 2
	{
		String result = "miss";

/** [HTML]Also I think here the userInput needs to be converted to Integer using Integer.ParseInt
but there is no such line in the book, can it be just ignored?[/HTML] */

		int index = locationCells.indexOf(userInput);
		if(index>=0)
		{
			locationCells.remove(index);
			if(locationCells.isEmpty())
			{
				result = "kill";
			}else{result = "hit";}
		}
		return result;
	}

}
I understand that I cannot pass and Integer array into a String array (Tag 1 to Tag 2) but I am not able to find a way to correct it. Any help to correct this would be great. Thank you:)