This is the class that gives me the error
errors are
';' expected on line 17
illegal start of expression on line 31
illegal start of expression on line 32
1public class SimpleDotCom
2{
3int[] locationCells;
4int numOfHits = 0;
5
6public void setLocationCells(int[] locs)
7{
8locationCells = locs;
9}
10
11public
String checkYourself(String stringGuess)
12{
13int guess = Integer.parseInt(stringGuess);
14String result = "miss";
15//int cell = 0;
16for (int cell : locationCells) // i = 0; i < 7; i ++)
17{
18if (guess == cell)
19{
20result = "hit";
21numOfHits++;
22//cell++;
23break;
24}
25}
26if (numOfHits == locationCells.length)
27{
28result = "kill";
29}
30System.out.println(result);
31return result;
32}
33}