“2D -Liste in Dart” Code-Antworten

Array 2d Dart

//Array 2d Dart
int row = 3;
int col = 4;

var twoDList = List.generate(row, (i) => List(col), growable: false);

//For fill;
twoDList[0][1] = "deneme";

print(twoDList);

// [[null, deneme, null, null], [null, null, null, null], [null, null, null, null]]
Dull Dove

2D -Liste in Dart

 //Declare and initialize a matrix x having 
 //m rows and n columns, containing real numbers.

var x = new List.generate(m, (_) => new List(n));
Bijay Poudel

Mehrdimensionale Liste in Dart

int a = 3;
int b = 3;

var tList = List.generate(a, (i) => List(b), growable: false);
print(tList); 
// [[null, null, null], [null, null, null], [null, null, null]]
Fancy Fly

Ähnliche Antworten wie “2D -Liste in Dart”

Fragen ähnlich wie “2D -Liste in Dart”

Weitere verwandte Antworten zu “2D -Liste in Dart” auf Dart

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen