> Call.invoke returns type Object. You need to cast that into the Integer
> class and use intValue() to get the value into the primitive type int.
>
> Something like this:
> int a = (new Integer((String)call.invoke(new Object[]{}))).intValue();
Or this
int a = ((Integer)call.invoke(new Objec
Thank you very much, that is exactly what I want.
dacheng
- Original Message -
From: "Greg Michalopoulos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 3:51 PM
Subject: RE: How to get the int returned from the service
> Call.i
Call.invoke returns type Object. You need to cast that into the Integer
class and use intValue() to get the value into the primitive type int.
Something like this:
int a = (new Integer((String)call.invoke(new Object[]{}))).intValue();
-Original Message-
From: Dacheng [mailto:[EMAIL PROTE