how to loop through code 3 times java

Solutions on MaxInterview for how to loop through code 3 times java by the best coders in the world

showing results for - "how to loop through code 3 times java"
Antonio
18 Jan 2019
1for (int i = 0; i < 3; i++) {
2    // your code goes here
3}
Roxane
12 May 2019
1String arr[]={"hi","hello","bye"};
2for (String str : arr) {
3         System.out.println(str);
4}