class TriangleList2 {

   public String summary() {
      DecimalFormat df = new DecimalFormat("#,##0.0##");
      String result = "";
      result += "----- Summary for " + getListName() + " -----"; 
      result += "\nNumber of Triangles: " + numTriangles();
      result += "\nSmallest Perimeter: " + smallestPerimeter(); 
      result += "\nLargest Perimeter: "  + largestPerimeterWithSides();
      result += "\nTotal of Perimeters: "  + totalOfPerimeters();
      
      return result;
   }

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

}