Greg Charles wrote:OK, are you getting the word "null" in the output or just nothing? You still haven't shown where you assign org a value, but I bet your trouble is starting on line 49 of the listing. There you assign a value to orgList, but then let it immediately go out of scope without your using that value for anything. There should be some relation between org and orgList, right?
Greg Charles wrote:Well, I can tell you that anything you tried to do with orgList on line 56 would fail at the compiler level, because it is out of scope after line 51. For all intents and purposes, orgList simply doesn't exist at line 56.
So, orgList is a List of what? Strings? Are you trying to turn orgList into a comma-separated String version of what is in orgList? Is org even a String? I might not have been clear before, but you're leaving out details we need in order to help you. In particular, you haven't shown where you define org, or where you assign it any value. You also haven't told us how you want to use orgList.
raghvendraa Thomas wrote:In backend database where this data is stored,organization is a String.so, I am trying to convert ArrayList to String.so i can get the values in above format.
Hardik Modi wrote:the reason i am exporting this in file since,one of the appowner want their data back along with couple of more attributes from different application.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Hardik Modi wrote:the reason i am exporting this in file since,one of the appowner want their data back along with couple of more attributes from different application.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Don't get me started about those stupid light bulbs. |