Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Split arrayList into String  RSS feed

 
John Joe
Ranch Hand
Posts: 370
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder how to split ArrayList into String.

I've been successfully make the checkboxes added dynamically, the problem now is I have no idea on how to split the arrayList into string.

Everything is start from StaffManagement.java

StaffManagement



adminAPI



deleteAdmin




Output



Is it possible to split the arrayList ? Example the first checkbox named john, second checkbox named 1 ?

Thanks a lot.
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Joe wrote:I've been successfully make the checkboxes added dynamically, the problem now is I have no idea on how to split the arrayList into string.

Wrong question. The right question (I suspect) is "how do I get each checkbox to have one name".

So, question for you: How do you get a single element from a List?

Winston
 
John Joe
Ranch Hand
Posts: 370
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
Wrong question. The right question (I suspect) is "how do I get each checkbox to have one name".

So, question for you: How do you get a single element from a List?

Winston


Thanks for your reply. I just edited my question.
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Joe wrote:Thanks for your reply. I just edited my question.

OK, so do you have an answer to my question? I assume you're familiar with how to use a List, or you wouldn't have included one in your program.

Winston
 
John Joe
Ranch Hand
Posts: 370
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
OK, so do you have an answer to my question? I assume you're familiar with how to use a List, or you wouldn't have included one in your program.

Winston


Sorry, I don't know the answer
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Joe wrote:Sorry, I don't know the answer

Have a look at List.get(int).

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!