how we can use for loop three times in java

Solutions on MaxInterview for how we can use for loop three times in java by the best coders in the world

showing results for - "how we can use for loop three times in java"
Beatrice
03 Apr 2016
1for (int i = 0; i < 3; i++) {
2    // your code goes here
3}
Sara
26 Mar 2019
1String arr[]={"hi","hello","bye"};
2for (String str : arr) {
3         System.out.println(str);
4}