Re: [jade-develop] StrToInt


Subject: Re: [jade-develop] StrToInt
From: Stephen C. Upton (upton@mitre.org)
Date: Tue Oct 08 2002 - 22:38:59 MET DST


Vadim,

You can use a number of the java Integer static methods for this:
Integer.parseInt(string) or Integer.decode(string). The first run returns
and int, and the second returns an Integer.

good luck
steve

Vadim wrote:

> Hello All,
>
> Sorry for offtopic, but after getting the parameter string from an
> Agent I need to represent them(parameters) as Integers.
> How to convert string->integer??
> Is there some standart procedure or I should represent string,
> containing for example "123" as
> char[] and then convert each char->int(1*100+2*10+3)??
> Thank you.
> --
> Best regards,
> Vadim mailto:mogikan@pisem.net
>
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
> http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Tue Oct 08 2002 - 22:39:26 MET DST