How do I display the results of list<t>. I put rangeChecker objects in range and now I want to display the rangeChecker objects in range. How whould I do that?
static void display(RangeChecker[] rangeChecker, int SIZE)
{
//displays values for x, y, z, and how many times z was below x and y
int under = 0;
List<RangeChecker> range = new List<RangeChecker>();
range.Add(rangeChecker[0]);
under = rangeChecker[0].getUnder();
for (int i = 0; i < SIZE-1; i++)
{
if (under == rangeChecker[i + 1].getUnder())
{
range.Add(rangeChecker[i+1]);
}
else if (under < rangeChecker[i + 1].getUnder())
{
range.Clear();
under = rangeChecker[i + 1].getUnder();
range.Add(rangeChecker[i + 1]);
}
}
for(int i=0; i<range.Count(); i++)
}