• Post Reply Bookmark Topic Watch Topic
  • New Topic

alignment ssue

 
SHINU .R SHINU .R
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use string delimiter functionality and retrieve value from log like following format on text file
system SubTicket id ticket id
-----------------------------------------------------------------------------------------------------
Tata268535910#268898468#2684362561035766
Unisys 1035766
Infosys 268535910#268898468#268436258 1035766
Kanbay 268535910#268898468#268436254 1035766
But after retieving values i nned to arrange out put in the following way
system SubTicket id ticket id
______________________________________________________________________________________________________
Kanbay 268535910#268898468#268436254 1035766
Tata268535910#268898468#268436256 1035766
Infosys 268535910#268898468#268436258 1035766
Unisys 1035766

it is only example.........lot of numbers comes on subticket id......based on that ineed to arranging asending.....Is it possible in java.....If so can any body help me with code
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The lines in both cases look the same to me (as does your description of the items ine ach line). So is the problem just the order of the lines, i.e. you want to to sort the list? If so, can you store them in an array of Collection? Those are quite easy to sort.
If you meant something else, please post more detail about what you mean by "alignment".
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"SHINU .R SHINU .R",

You have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Failure to comply will result in the removal of your account.

bear
JavaRanch Sheriff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!