List in Dart
Coder

Coder @coder_d295cd12743e7d146c7

About: I want to learn flutter

Joined:
Dec 29, 2024

List in Dart

Publish Date: Dec 30 '24
0 0
void main() {
  print('Om Namah Shivay');
//list
  List<int> ages = [1, 2, 3, 4, 5, 6, 7, 5, 4, 2];
  ages.remove(2);
  ages[5] = 45;

  print(ages.length);
  print(ages);
}

Enter fullscreen mode Exit fullscreen mode

I understood

Comments 0 total

    Add comment