Article View: es.comp.lenguajes.java
Article #29590Re: Pregunta facil.
From: Monkiki
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
30 lines
1393 bytes
1393 bytes
>Como transformo un string a numero. Por favor ponerme un ejemplo.
Aqu� tienes, majo:
String numero_str = new String("12345");
try {
int numero_int = Intenger.parseInt(numero_str);
} catch (NumberFormatException e) {
System.err.println("Error de conversi�n: " +e.getMessage());
System.exit(-1);
}
> Gracias
De nada, para eso estamos aqu�. De todas formas te recomiendo que cojas alg�n tutorial de Java de
los que hay por ah� y aprendas de forma ordenada.
Este es mi consejo de hoy.
Vis�tame en:
http://www.redestb.es/personal/quickly (La p�gina de Monkiki)
E mail:
quickly@mx3.redestb.es
"Baco, por siempre loado,
os libre del cirr�tico mal y
del advenimiento gonoc�cico".
Technical Details
Message-ID:
<347ae4c0.2575337@news.redestb.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<880399476.215114@cache>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,daccd2dc66774431 X-Google-Attributes: gid1116f3,public From: quickly@mx3.redestb.es (Monkiki) Subject: Re: Pregunta facil. Date: 1997/11/25 Message-ID: <347ae4c0.2575337@news.redestb.es> X-Deja-AN: 292660206 References: <880399476.215114@cache> Organization: Soy muy desorganizado Reply-To: quickly@mx3.redestb.es Newsgroups: es.comp.lenguajes.java