Hello, I started learning Java and I ran in to some troubles with the basics while I was trying to figure out some arrays.
I wrote 2 for loops and I tried to make them identical as possible but the error on last line in the second loop says "n cannot be resolved to a variable"
what seems to be the problem?
public class apps {
public static void main(String[] args) {
String[] words = new String[3];
words[0] = "Hello ";
words[1] = "to ";
words[2] = "you ";
for(int i=0; i<3; i++)
System.out.print(words[i]);
String[] bestSinger = new String[4];
bestSinger[0] = "Billie ";
bestSinger[1] = "Eilish ";
bestSinger[2] = "kicks ";
bestSinger[3] = "ass! ";
for(int n=0; n<4; n++);
System.out.print(bestSinger[n]);
}
}