return more than one object within one method
- From: "Frank Meyer" <f.meyer@xxxxxxxx>
- Date: Fri, 27 May 2005 17:01:56 +0200
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
.
- Follow-Ups:
- Re: return more than one object within one method
- From: Allan Bruce
- Re: return more than one object within one method
- From: Roland
- Re: return more than one object within one method
- Prev by Date: Re: Simple Java Question (reading text file of integer values)
- Next by Date: Re: jar problems
- Previous by thread: Questions about Java Executables.
- Next by thread: Re: return more than one object within one method
- Index(es):
Relevant Pages
|