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() { | |
var listEx = <int>[]; | |
listEx.add(341); | |
listEx.add(1); | |
listEx.add(23); | |
// iterating across list listEx | |
for (int element in listEx) { | |
print(element); | |
} |
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() { | |
var deck = Deck(); | |
//deck.shuffle(); | |
// print(deck.cardsWithSuit('Clubs')); | |
// print(deck); | |
// print(deck.deal(4)); | |
// print(deck); | |
print(deck); | |
deck.removeCard('Diamonds','Ace'); | |
print(deck); |
NewerOlder