public class AIMD_general { public static void main(String[] args) { double[] flows = new double[3]; flows[0] = 0; flows[1] = 100; flows[2] = 50; int additive_increase = 10; double multiplicative_decrease = 0.8; for (int count=0; count<100; count++) { if (sum(flows) <= 100 ) { for (int i=0; i