Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

JAVA for loop

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: #JAVA #loop
ADD COMMENT
Topic
Name
4+5 =