Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Collections/Elena/collections-1.elena
Normal file
6
Task/Collections/Elena/collections-1.elena
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// Weak array
|
||||
var stringArr := Array.allocate(5);
|
||||
stringArr[0] := "string";
|
||||
|
||||
// initialized array
|
||||
var intArray := new int[]{1, 2, 3, 4, 5};
|
||||
5
Task/Collections/Elena/collections-2.elena
Normal file
5
Task/Collections/Elena/collections-2.elena
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//Create and initialize ArrayList
|
||||
var myAl := new system'collections'ArrayList().append:"Hello".append:"World".append:"!";
|
||||
|
||||
//Create and initialize List
|
||||
var myList := new system'collections'List().append:"Hello".append:"World".append:"!";
|
||||
4
Task/Collections/Elena/collections-3.elena
Normal file
4
Task/Collections/Elena/collections-3.elena
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
//Create a dictionary
|
||||
var dict := system'collections'Dictionary.new();
|
||||
dict["Hello"] := "World";
|
||||
dict["Key"] := "Value";
|
||||
Loading…
Add table
Add a link
Reference in a new issue