This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
use return a; You use the backets only when declaring an array (e.g. String a[][] = new String[5][5]) or working with a specific element in an array (e.g. a[1][2] = "test" or String s = a[1][2]). When in doubt, just try compiling it.
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Kevin Knowles
Ranch Hand
Joined: Dec 29, 2002
Posts: 45
posted
0
Well, thanks, but I get this errror when using return (a);
..........java:74: incompatible types found : double[][] required: double return(a); ^
What are you declaring that you return? You need to do something like this: public double[][] myMethod() { double[][] a; ..... return a; } And when you invoke the method: double[][] b = myMethod();