This forum is now read-only. Please use our new forums! Go to forums
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
Wrong forum.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency