How can I return multiple values from a Java function?
In C we can use pointer to return multiple value from a function. But how do I achive the same in Java?
For example, how do write the following C code in Java?
prototype -> int solve_quad(int p, int q, int r, float *q1, float *q2)
while calling -> status = solve_quad(a,b,c,&root1,&root2);
Thanx




Reply With Quote