Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

enhanced for loops

String[] myArray = {"Enhanced for loops", "are cool", "and save time!"};

for (String myValue : myArray) {
    System.out.println(myValue);
}

/*Result:
Enhanced for loops
are cool
and save time!
*/
Source by www.cis.upenn.edu #
 
PREVIOUS NEXT
Tagged: #enhanced #loops
ADD COMMENT
Topic
Name
6+7 =