ForEachLoop Example in Java

public class FoEachLoop {
public static void main(String[] args) {
String[] counts = { "one", "two", "three" };
for (String str : counts) {
System.out.println(str);
}
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *