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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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}