Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

for loop JAVA

class Main {
 public static void main(String[] args) {
    
   char[] vowels = {'a', 'e', 'i', 'o', 'u'};

   // iterating through an array using a for loop
   for (int i = 0; i < vowels.length; ++ i) {
     System.out.println(vowels[i]);
   }
 }
}
Source by api.mercadolibre.com #
 
PREVIOUS NEXT
Tagged: #loop #JAVA
ADD COMMENT
Topic
Name
1+4 =