for loop 5 times 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);
}