// kludge to return multiple objects from a method.

return new Object[] { aString, new Integer( anInt ) };

// The caller then has to unpack.

Object[] junk = aMethod();

String aString = (String) junk[0];

int anInt = ((Integer) junk[1]).intValue();