以下程序使用迭代器将List对象中的字符用大写输出 请完成横线上的部分。 class Program { static
已帮助 人
以下程序使用迭代器将List对象中的字符用大写输出,请完成横线上的部分。 class Program { static void Main(string[] args) { String str = "This is a dog"; List<String> l = new List<String>(); for (int i = 0; i < str.Length; i++) l.Add(str.Substring(i, 1)); IEnumerator<String> it = l._______1_______; while (it._______2_______) { Console.Write(it._______3_______.ToUpper()); } } }

回答
共1条回复-
list.iterator()iterator.next()
