해결된 질문
작성
·
439
·
수정됨
0
List<int>[] adj2 = new List<int>[]
{
// new List<int> 뒤에 () 를 넣지 않아도 오류가 안나던데요.
// ( 소괄호 ) 를 넣어도 안넣어도 되는건가요?
// 선생님은 new List<int>(){ 1, 3} 이렇게 하셨습니다.
new List<int>{ 1, 3},
new List<int>{ 0, 2, 3},
new List<int>{ 1},
new List<int>{ 0, 1, 4},
new List<int>{ 3, 5},
new List<int>{ 4}
};
또 잘이해가 안되는점이.
아래 링크한 블로그에서는 (소괄호) 가 이런식으로 있습니다.
List<List<string>> list = new List<List<string>>();