0

i have no idea to return multiple statement.

public double[] compute(double[] times)
  {
  	double[] t = this.Portion(times);
  	
  	 
  	double aa = this.computeTime(180-19.5,t[0]);
  	double bb = this.computeMidDay(t[1]);
  	double cc= this.computeAs(1 + asrJuristic, t[2]);
  	double dd = this.computeTime(0, t[3]);

}

how to return all double " aa, bb, cc, dd" in this function???

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by sweetgurl
0

pack result in the double array
the same way as does the method:

this.Portion(times);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.