Hello,
Using Java 1.4 I need to perform two tasks on a string variable where part of the items are delimited by commas:
1. Determine if a string (say user2) is in sUsersA (true/false).
2. Remove an item from string (say user2) from sUsersA preserving the other items in string. For instance: groupa=user1,user2,user3 would become groupa=user1,user3
I have been scouring the docs I dont quite have it.
What can you recommend?
Thanks,
Michael42
Using Java 1.4 I need to perform two tasks on a string variable where part of the items are delimited by commas:
Code:
String sUsersA = "groupa=user1,user2,user3";
2. Remove an item from string (say user2) from sUsersA preserving the other items in string. For instance: groupa=user1,user2,user3 would become groupa=user1,user3
I have been scouring the docs I dont quite have it.
What can you recommend?
Thanks,
Michael42