I'm very new to Java, and have been following step-by-step guides online. However, I was unable to run this chunk of codes though I followed exactly what was taught and I got compile time errors.
my code:
public class HelloWorld {
public static void main(String[] args) {
String[] family = {"Tricia", "ALbert", "Edwin"};
for(String name = family) {
System.out.println(name);
}
}
}
Hope could get some guidance here to show me where went wrong. I also notice I'm very bad with symbols and special characters.
I'd appreciate a lot for your help and precious time. Good day.