Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

URGENT........How to store a string value in string array..........!!!

807591Mar 4 2008 — edited Mar 5 2008
Hi All,
I need to store each string value in a String array.
Please help me how to do this.

I have following snippet of code
billingQueryParamsItr = billingQueryParamList.iterator(); //billingQueryParamList is list which I am getting from database
while(billingQueryParamsItr.hasNext()) {
	billingQueryParam = (BillingQueryParam) billingQueryParamsItr.next();
	System.out.println("****** Param Name-->"+billingQueryParam.getParamName()); // billingQueryParam.getParamName() returns an String and I need to set this value in billingItemActionForm.setParamName(String[] value), like below

	billingItemActionForm.setParamName(billingQueryParam.getParamName());// giving compilation error as I am passing String
//Pls help how to convert this string into String array and set the same value in form bean.
}	
Thanks in advance....!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2008
Added on Mar 4 2008
36 comments
350 views