Advertisement

06.11.2007 at 08:51PM PDT, ID: 22627595
[x]
Attachment Details

How do I assign values to string variables in loop

Asked by anup001 in Java Standard Edition, Java Programming Language, New to Java Programming

Tags: , , ,

How do I assign values to string variables in loop from the following loop in java

for (int i = 0; i < lengthDim; i++) {
                        String test[i]= application[i].getName();
                        
                  }

So if i have 10 names being returned in above loop i should have those avaiable in variables named test0 to test9 Start Free Trial
 
Loading Advertisement...
 
[+][-]06.11.2007 at 08:52PM PDT, ID: 19263546

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 08:54PM PDT, ID: 19263551

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Standard Edition, Java Programming Language, New to Java Programming
Tags: string, values, assign, variables
Sign Up Now!
Solution Provided By: kupra1
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.11.2007 at 09:48PM PDT, ID: 19263696

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32