for loop in java that reads 1000 times code example
Example: how we can use for loop three times in java
String arr[]={"hi","hello","bye"};
for (String str : arr) {
System.out.println(str);
}
String arr[]={"hi","hello","bye"};
for (String str : arr) {
System.out.println(str);
}