Re: How to get the int returned from the service

2004-11-17 Thread Peter Smith
> 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

Re: How to get the int returned from the service

2004-11-17 Thread Dacheng
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

RE: How to get the int returned from the service

2004-11-17 Thread Greg Michalopoulos
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