class TriangleList2 {

   public String toString() {
      String result = "\n" + listName + "\n";
      int index = 0;
      while (index < numberOfTriangles) {
         result += "\n" + tList[index] + "\n"; 
         index++;  
      }   
      return result;
   }

   public  TriangleList2(String listNameIn, Triangle[] tListIn, 
                        int numberOfTrianglesIn);

}