Created
November 9, 2021 02:31
-
-
Save felipecastrosales/82c00bf2a28e5d37780449509a6f4910 to your computer and use it in GitHub Desktop.
Listas Introdução
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() { | |
// 1. Apresentar | |
List lista1 = [7, 'Felipe', true]; | |
var lista2 = [7, 'Felipe', true]; | |
print(lista1); | |
print(lista2); | |
// 2. Inferindo tipos | |
List<String> nomes = ['Felipe', 'Paulo', 'Guilherme']; | |
List<int> numeros = [7, 1, 8]; | |
print(nomes); | |
print(numeros); | |
// 3. Array e Index | |
print(nomes[0]); | |
print(nomes[1]); | |
print(nomes[2]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment