以下程序使用迭代器将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()); } } }

以下程序使用迭代器将List对象中的字符用大写输出 请完成横线上的部分。 class Program { static

热搜:以下对象中的()不是jsp的内置对象

回答

共1条回复

  • list.iterator()iterator.next()