Created
February 8, 2024 20:30
-
-
Save DDOrozco17/6e776b82457116193421ba4ecffe171e to your computer and use it in GitHub Desktop.
ejemplos de lista dart
This file contains 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() { | |
List<String> misNovias = [ | |
"Intriga1", | |
"Intriga2", | |
"Intriga3", | |
"Intriga4", | |
"Intriga5" | |
]; | |
// Finding Length of List | |
print("Estas son mis novias $misNovias"); | |
print("Esa no se nombra es ${misNovias[0]}"); // index 0 | |
print("Contacto cero es ${misNovias[1]}"); // index 1 | |
print("El amor de mi vida es ${misNovias[2]}"); // index 2 | |
print("La de repuesto es ${misNovias[3]}"); // index 3 | |
print("La por si acaso es ${misNovias[4]}"); // index 4 | |
int length = misNovias.length; | |
print("Lista de chufulas es $length"); | |
} |
Author
DDOrozco17
commented
Feb 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment