954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

return multiple

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???

sweetgurl
Newbie Poster
9 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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

this.Portion(times);
quuba
Posting Pro
573 posts since Nov 2008
Reputation Points: 123
Solved Threads: 106
 

thanks quuba.. i already get a solution.

sweetgurl
Newbie Poster
9 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You