Results 1 to 4 of 4
Thread: List of Objects to String array
- 05-17-2012, 03:50 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
List of Objects to String array
Hi Sir,
I have having a List of objects I need to convert them to String Array. variablesList ArrayList has one char and another String . I need to create String array of all set of objects. Please give your suggestion and help me on this.
Example :
List<EquationVariableBO> variablesList = null;
EquationVariableBO variable1 = new EquationVariableBO();
variable1.setSign("+");
variable1.setVariable("02270");
EquationVariableBO variable2 = new EquationVariableBO();
variable2.setSign("-");
variable2.setVariable("01070");
// variable2.setValue(200);
EquationVariableBO variable3 = new EquationVariableBO();
variable3.setSign("-");
variable3.setVariable("02250");
EquationVariableBO variable4 = new EquationVariableBO();
variable4.setSign("-");
variable4.setVariable("02250");
EquationVariableBO variable5 = new EquationVariableBO();
variable5.setSign("-");
variable5.setVariable("02250");
variablesList = new ArrayList<EquationVariableBO>();
variablesList.add(variable1);
variablesList.add(variable2);
variablesList.add(variable3);
variablesList.add(variable4);
Regards,
Padam.
- 05-17-2012, 04:32 PM #2
Re: List of Objects to String array
Why do they call it rush hour when nothing moves? - Robin Williams
- 05-17-2012, 04:34 PM #3
Re: List of Objects to String array
Moved from Advanced Java.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-17-2012, 04:35 PM #4
Similar Threads
-
Accessing objects stored in an array list or set
By kev3kev3 in forum New To JavaReplies: 6Last Post: 04-24-2012, 06:10 PM -
Storing objects in an array list?
By Moedig in forum New To JavaReplies: 3Last Post: 10-27-2011, 06:39 PM -
Performance issue adding and removing lots of objects to Array list, need better way.
By Neilos in forum New To JavaReplies: 6Last Post: 09-05-2011, 01:25 PM -
Accessing objects in array list
By kev670 in forum New To JavaReplies: 6Last Post: 03-11-2011, 12:49 AM -
arraylist help please? trying to add objects to an array list
By zhangster in forum New To JavaReplies: 9Last Post: 02-10-2010, 03:19 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks