-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
34 lines (26 loc) · 811 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections;
namespace c__data_structures
{
class Program
{
static void Main(string[] args)
{
int[] nums = new int[]{0,1,2,3,4,5};
Array numsArray = nums;
ArrayList numsList = new ArrayList(nums);
Console.WriteLine("Hello World!");
Hashtable table = new Hashtable();
Console.WriteLine(table);
table.Add("key", "value");
Console.WriteLine(table["key"]);
for (int i = 0; i < nums.Length; i++) {
Console.WriteLine(nums[i]);
nums[i] = nums[i] * 2;
}
Console.WriteLine(nums.ToString());
string.Join(" ", numsArray);
Console.WriteLine(numsList[2]);
}
}
}