how to execute for loop three times in java 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);
}