return more than one object within one method



Hi newsgroup,

I have a little problem with a method that tries to use another method in
another class.

So far this method receives an ArrayList as follows:

private ArrayList bORead()
{
Einl e = new Einl();
bO = e.bocreate();
}


This works fine, but now I would like to also receive an integer created
from the method e.bocreate().
I know that the method bocreate() can only return one object, nevertheless I
found some information about collections that could wrap more than one
object.

Does anyone know if it is possible to receive more than one object (with
different object types) from one method?

Any help is greatly appreciated.

Thanks very much in advance and best regards!


Frank


.



Relevant Pages