Hi. I got a noobish question:
Is it possible to return an array "directly", so, something like this.
public int[] getArray(){
return int[]{this.intA, this.intB};
}
I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to be used a lot, so performance is the most important element here.
Thanks:)