hi peter,
String met[0][0] = {"a","b"};
the above type of initialization is allowed only when you're declaring an
array. u can not use this type of initialization when you've already declare
an array.
surender jain
----- Original Message -----
From: Peter Palombi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 2:25 PM
Subject: Stupid Question
> Hi all,
>
> i don't remember how can i insert in a array two string
>
> the example is
> String met[][][] = new String [50][50][50];
>
> i would insert in met[0][0] -> "a" and "b"
>
> i can use met[0][0][0] = "a";
> and met[0][0][1] = "b";
>
> but i would use
>
> met[0][0] = {"a","b"};
>
> but i receive a error
>
>
>
> where is the error?
>
> Thanks for your help
>
> Peter
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets