This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Eric Conklin
over 8 years

Java: for loop displaying unexpected token and

    for(int i=0; i<7; i++){                                       
    textViewArray[i] = (TextView)findViewById(R.id.enterRent);
}                                                             

The above code produces an unexpected token error on the for in the for loop. The 7 produces an identifier expected error as well as an unexpected token error. Finally, the i++ produces an unknown class ‘i’ error, an unexpected token and an identifier expected error.

Just what in the heck is wrong with my code?

Answer 55a864ec76b8fe45a3000372

0 votes

Permalink

Wrong forum.

points
over 8 years