class TriangleList2 {

   public String largestPerimeterWithSides() {
      double largest = 0;
      int indexOfLargest = 0;
      int index = 0;
      while (index < numberOfTriangles) {
         if (tList[indexOfLargest].perimeter() 
               < tList[index].perimeter()) {
            indexOfLargest = index;
         }
         index++;  
      }   
      
      if (numberOfTriangles > 0) {
         return tList[indexOfLargest].perimeter()
            + " for sides "
            + tList[indexOfLargest].getS1() + ", " 
            + tList[indexOfLargest].getS2() + ", " 
            + tList[indexOfLargest].getS3();
      }
      else {
         return "No triangles in list";
      }
   }

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

}