• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Split arrayList into String

 
Ranch Hand
Posts: 570
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.
 
Bartender
Posts: 10759
68
Hibernate Eclipse IDE 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: 570
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: 10759
68
Hibernate Eclipse IDE 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: 570
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: 10759
68
Hibernate Eclipse IDE 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!