Very well, put an initialize statement before try-catch block.

For example
Vector v = null;
try
{
    populate v here
}
catch()
{}

Now you can access your Vector v without the initialization error.

regards
Y
----- Original Message -----
From: Nimmons, Daniel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 2:39 AM
Subject: accessing array initialized in a try statement


> being fairly new to java I am still trying to work out variable scopes. I
> have a try statement where an array is populated with values. However when
I
> try to access the values in this array from anywhere but in the try
> statement I get an "variable fileArray may not have been initialized"
how
> do I access the values in this array...
>
> Daniel (Buster) Nimmons
>
> Information Management Specialist
> Phone: (713) 845-4991
> CELL #:(281) 224-8013
> Fax #:  (713) 640-8717
> E-mail: [EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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".
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

Reply via email to