Advertisement

09.28.2007 at 03:32PM PDT, ID: 22860754
[x]
Attachment Details

Passing array to an object in java

Asked by anup001 in Java Server Pages (JSP), Java Servlets, New to Java Programming

Tags: java, array, passing

I have an array of data type Troop[] in java . This array can be empty or may hold multiple values. IF it has any values i need to pass it to an addTz object otherwise it should be ignored if this array is empty or null.

initially the values are stored in a comma separated straing as  String a="abc,def,hey,"

I need to convert these into and array and then pass it to addTz.setvalues(a) or something like that.


How do I do it?

ThanksStart Free Trial
[+][-]09.28.2007 at 06:30PM PDT, ID: 19982666

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.

 
[+][-]09.29.2007 at 09:13AM PDT, ID: 19984273

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.

 
[+][-]09.29.2007 at 09:16AM PDT, ID: 19984290

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.

 
[+][-]09.29.2007 at 10:33AM PDT, ID: 19984611

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.

 
[+][-]09.29.2007 at 10:40AM PDT, ID: 19984638

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.

 
[+][-]09.29.2007 at 10:44AM PDT, ID: 19984652

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.

 
[+][-]09.29.2007 at 10:48AM PDT, ID: 19984680

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.

 
[+][-]09.29.2007 at 11:15AM PDT, ID: 19984786

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.

 
[+][-]09.29.2007 at 12:55PM PDT, ID: 19985111

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.

 
[+][-]09.29.2007 at 01:17PM PDT, ID: 19985186

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.

 
[+][-]09.29.2007 at 07:29PM PDT, ID: 19985979

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 Server Pages (JSP), Java Servlets, New to Java Programming
Tags: java, array, passing
Sign Up Now!
Solution Provided By: gksinghiet
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628