class TriangleList2 {

   public double totalOfPerimeters() {
      double total = 0;
      
      int index = 0;
      while (index < numberOfTriangles) {
         total += tList[index].perimeter();
         index++;  
      }   
      
      return total;
   }

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

}