J
Jeremy Watts
Hi,
I've written a Java method that uses a list to return 5 three-dimensional
arrays containing 'Big Decimal' entries. However I also want to return a
single boolean type variable, but cant seem to get the program to do this.
My method basically goes :-
start method {
declare arrays and variables
List result = new ArrayList(5)
..
..
..
..
REST OF METHOD
..
..
..
result.add(first array)
result.add(second array)
etc
result.add(fifth array)
return (result)
end method }
This works fine for just the arrays, but if I attempt to add the line
'result.add(LDMexists)' , to return the boolean variable 'LDMexists' then I
get the error message ' cannot resolve symbol - method add(boolean)'
I have declared the boolean type LDMexists, so I cant see what I'm doing
wrong here - how do I get it to return the five arrays and the boolean
variable LDMexists?
Thanks
I've written a Java method that uses a list to return 5 three-dimensional
arrays containing 'Big Decimal' entries. However I also want to return a
single boolean type variable, but cant seem to get the program to do this.
My method basically goes :-
start method {
declare arrays and variables
List result = new ArrayList(5)
..
..
..
..
REST OF METHOD
..
..
..
result.add(first array)
result.add(second array)
etc
result.add(fifth array)
return (result)
end method }
This works fine for just the arrays, but if I attempt to add the line
'result.add(LDMexists)' , to return the boolean variable 'LDMexists' then I
get the error message ' cannot resolve symbol - method add(boolean)'
I have declared the boolean type LDMexists, so I cant see what I'm doing
wrong here - how do I get it to return the five arrays and the boolean
variable LDMexists?
Thanks