jQuery in Action, 2nd edition
The moose likes Beginning Java and the fly likes String manipulation. Help needed. ..!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "String manipulation. Help needed. ..!!" Watch "String manipulation. Help needed. ..!!" New topic
Author

String manipulation. Help needed. ..!!

Pradyumna Joshi
Greenhorn

Joined: Feb 06, 2007
Posts: 4
Hi,

I wanted to format string as follows:

Input string:
staffnum|role|name|lastname

12345|role1|abc|pqr
12345|role2|abc|pqr


Required Output String:

12345|role1,role2|abc|pqr

i.e. I wanted to separate role field by comma for same staff number and wanted to remove second row of same staff number.

please help.
Mohamed Sanaulla
Bartender

Joined: Sep 08, 2007
Posts: 2925
    
  15

Have you tried some code so that we can help you out with it?


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: String manipulation. Help needed. ..!!
 
Similar Threads
security constraint - not working
Strange error with Custom User Registry
Pls answer
Doubt in word boundaries
ManyToMany: ternary Relationship