Article View: es.comp.lenguajes.java
Article #952Ayuda a novato
From: Gam
Date: Sat, 04 Nov 2006 11:15
Date: Sat, 04 Nov 2006 11:15
17 lines
1511 bytes
1511 bytes
Saludos,
Acabo de empezar y tal vez este no sea el mejor sitio para encontrarme
con novatos como yo... alguna recomendaci�n? Estoy siguiendo el libro
Thinking in Java, pero a veces tengo dudas de lo mas tontas, como por
ejemplo, al intentar imprimir parametros desde main no me sale. Un c�digo
como el siguiente me da error de "Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException"
public class Exercise7
public static void main (String[] args){
System.out.println(args[1]);
}
Gracias,
Gam
Technical Details
Message-ID:
<aH03h.4218$T9.3991@news.ono.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!kanaga.switch.ch!switch.ch!news.rediris.es!news.espanix.net!62.42.230.143.MISMATCH!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,5548bb9983f5057b,start X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!kanaga.switch.ch!switch.ch!news.rediris.es!news.espanix.net!62.42.230.143.MISMATCH!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mail From: "Gam" <gam@hotmail.com> Newsgroups: es.comp.lenguajes.java Subject: Ayuda a novato Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original Message-ID: <aH03h.4218$T9.3991@news.ono.com> Date: Sat, 4 Nov 2006 12:15:21 +0100 NNTP-Posting-Host: 84.122.107.77 X-Trace: news.ono.com 1162647366 84.122.107.77 (Sat, 04 Nov 2006 14:36:06 MET) NNTP-Posting-Date: Sat, 04 Nov 2006 14:36:06 MET