• Post Reply Bookmark Topic Watch Topic
  • New Topic

Check duplicate values and the count in an arraylist and store it in another list  RSS feed

 
Savannah David
Greenhorn
Posts: 16
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a list which has four fields: year, month, file info and count of search string.

I need to count month name and the total of search string in that month and put that values in a new list.

Example:
I have data like:
==============
2012 10 fileinfo 2000
2012 10 fileinfo 5000
2012 11 fileinfo 3000
2012 11 fileinfo 2000

I need result based on particular month (total searchstring in that month):
================================================
10 7000
11 5000


Please help to solve this.

Many Thanks
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far and where are you stuck?
 
Savannah David
Greenhorn
Posts: 16
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply @Maneesh Godbole
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!