@Test public void whenAddThreePointsLengthOfMaxSideIsTwenty() { MaxSide maxSide = new MaxSide(); assertThat(maxSide.max(10d,20d,15d), is(20d)); }
public double max (double... sideLengths) { double maxLength = 0; for (double length : sideLengths) { if (length > maxLength) { maxLength = length; } } return maxLength; }
MaxSide { public double max (double... sideLengths) { double maxLength = 0; for (double length : sideLengths) { if (length > maxLength) { maxLength = length; } } return maxLength; } }
MaxSide { public double max (double... sideLengths) { double maxLength = 0; for (double length : sideLengths) { if (length > maxLength) { maxLength = length; } } return maxLength; }  }
MaxSide { public double max (double... sideLengths) { double maxLength = 0; for (double length : sideLengths) { if (length > maxLength) { maxLength = length; } } return maxLength; }  double max(double... sideLengths); }
MaxSide { public double max (double... sideLengths) { double maxLength = 0; for (double length : sideLengths) { if (length > maxLength) { maxLength = length; } } return maxLength; }  double max(double... sideLengths);  }