• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get details summary date wise from text file  RSS feed

 
vivek dhiman
Ranch Hand
Posts: 155
Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As per mu usecase, I need to store values via command line as :

And result from output.txt would be as :


I have written few classes, Below is the logic that i am using to write output.txt:

But this site the result in format :


Does anyone has any Idea how can i achieve such functionality.

Thanks
 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you're trying to do is called a control break report. I would need to see the code that calls this method to help.
 
vivek dhiman
Ranch Hand
Posts: 155
Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what i tried to implement yet.

And

And
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please also tell us the format you want. Showing a few lines allows us to see where the outputs differ but not to understand your actual intent.

I think this question is too difficult for “beginning”, so I shall move it.
 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would separate the printing of the data from the printing of the duration and keep a prevDate variable to determine when to print the date and when not to.



I leave it to you to flesh out the rest of the program.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!