Answers for "java 8 loop 3 times"

-3

how we can use for loop three times in java

String arr[]={"hi","hello","bye"};
for (String str : arr) {
         System.out.println(str);
}
Posted by: Guest on March-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language