File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Help with parse string into object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help with parse string into object" Watch "Help with parse string into object" New topic

Help with parse string into object

jay lai
Ranch Hand

Joined: Apr 04, 2002
Posts: 180
I have an POJO call have the 4 attributes(id, pos1, pos2, pos3) with getter/setter.

I have a method need to return ArrayList<MyObject> taking the String and parse out into the object. The string is concatinate of the number of records, and now they want to split into the field like in the table with columns

Please help or hint thanks, Greately appreciated
marc weber

Joined: Aug 31, 2004
Posts: 11343

What is the logic for splitting the String? For example, will it always be 3 chars, followed by 4 chars, followed by 3 chars, followed by 3 chars?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: Help with parse string into object
It's not a secret anymore!