navrsalemile
Programmer
Hi all,
I have 10 strings representing checkboxes (states) from GUI like:
String str1;
...
String str10;
I want to construct one string that represents selection of states out of these in such a way that if particular string is null or not "" then it should be concatenated into that string, otherwise skipped.
I am wondering what is the most efficient way to do that besides if-the-else?
thanks,
I have 10 strings representing checkboxes (states) from GUI like:
String str1;
...
String str10;
I want to construct one string that represents selection of states out of these in such a way that if particular string is null or not "" then it should be concatenated into that string, otherwise skipped.
I am wondering what is the most efficient way to do that besides if-the-else?
thanks,