c# nested list
using System;
using System.Collections;
using System.Collections.Generic;
//^^^ Needed libraries
List<List<type>> name = new List<List<type>>
{
new List<type> {"Hi", "How are you?"},
new List<type> {"Hope this was helpful"}
};
c# nested list
using System;
using System.Collections;
using System.Collections.Generic;
//^^^ Needed libraries
List<List<type>> name = new List<List<type>>
{
new List<type> {"Hi", "How are you?"},
new List<type> {"Hope this was helpful"}
};
c# nested list
using System;
using System.Collections.Generic;
namespace main {
class Program {
private static void Main(string[] args) {
// syntax: List<type> name = new List<type>();
List<int> integerList = new List<int>();
for (int i = 0; i < 10; i++) {
// add item to list
integerList.Add(i);
}
for (int i = 0; i < 10; i++) {
// print list item
Console.WriteLine(integerList[i]);
}
}
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us