2019-09-12 10:33:56 -07:00
|
|
|
import system'routines;
|
|
|
|
|
import extensions;
|
2016-12-05 22:15:40 +01:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
public program()
|
|
|
|
|
{
|
|
|
|
|
auto n := new Integer();
|
|
|
|
|
auto m := new Integer();
|
2016-12-05 22:15:40 +01:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
console.write:"Enter two space delimited integers:";
|
|
|
|
|
console.loadLine(n,m);
|
2016-12-05 22:15:40 +01:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
auto myArray2 := new object[][](n.Value).populate:(int i => (new object[](m.Value)) );
|
|
|
|
|
myArray2[0][0] := 2;
|
|
|
|
|
myArray2[1][0] := "Hello";
|
2016-12-05 22:15:40 +01:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
console.printLine(myArray2[0][0]);
|
|
|
|
|
console.printLine(myArray2[1][0]);
|
|
|
|
|
}
|