• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with parse string into object

 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an POJO call myObject.java 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
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic