title: Print array with LINQ
body: <p>I got the following code and i am trying to print <code>teenAgerStudents</code> without the foreach i made after the LINQ line.
  Can i add print in the LINQ line?
  Can i print with another new LINQ line onstead the foreach?</p>
  
  <pre><code>class Student
  {
      public int StudentID { get; set; }
      public string StudentName { get; set; }
      public int Age { get; set; }
  }
  class Program
  {
      static void Main(string[] args)
      {
          Student[] studentArray = {
                  new Student() { StudentID = 1, StudentName = "John", Age = 18 } ,
                  new Student() { StudentID = 2, StudentName = "Steve",  Age = 21 } ,
                  new Student() { StudentID = 3, StudentName = "Bill",  Age = 25 } ,
                  new Student() { StudentID = 4, StudentName = "Ram" , Age = 20 } ,
                  new Student() { StudentID = 5, StudentName = "Ron" , Age = 31 } ,
                  new Student() { StudentID = 6, StudentName = "Chris",  Age = 17 } ,
                  new Student() { StudentID = 7, StudentName = "Rob",Age = 19  } ,
      };
          Student[] teenAgerStudents = studentArray.Where(s =&gt; s.Age &gt; 12 &amp;&amp; s.Age &lt; 20).ToArray();
  
          foreach (var item in teenAgerStudents)
          {
              Console.WriteLine(item.StudentName);
          }
  };
  </code></pre>