Created
July 8, 2020 10:35
-
-
Save Hiyorimi/cf1669c13818f9a5d5d5e7cc0dc4c63e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var example9Array = const ["a", "b"]; | |
example9() { | |
for (int i = 0; i < example9Array.length; i++) { | |
print("Example9 for loop '${example9Array[i]}'"); | |
} | |
var i = 0; | |
while (i < example9Array.length) { | |
print("Example9 while loop '${example9Array[i]}'"); | |
i++; | |
} | |
for (final e in example9Array) { | |
print("Example9 for-in loop '${e}'"); | |
} | |
example9Array.forEach((e) => print("Example9 forEach loop '${e}'")); | |
} | |
example9(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment