0
Loop can anybody help im getting a lenght error
public class Program { public static void main(String[] args) { String[] begroetingen = new String[]{"Hoi", "Hallo"}; for (int i = 0; i < begroetingen.lenght; i++) { System.out.println(begroetingen[i]); } for(String begroeting : begroetingen){ System.out.println(begroeting); } } }
1 Respuesta
+ 5
You have a typo: it is length – not lenght