Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help in java some implemting logic  RSS feed

 
satish kinikiri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a list of list as shown below :

FS1[[T1, 5][T2, 5]]
FS2[[T1, 7][T2, 7]]
...
..
..

I need the sum of FS's
FS2[[T1, 12][T2, 12]]

More details.....


resultFS should be FS2[[T1, 12][T2, 12]]
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satish, welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/new-java/34869-need-help-java-some-implemting-logic.html
 
Mohamed Sanaulla
Bartender
Posts: 3179
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have an List of Lists. And nested loops to find the sum
 
Campbell Ritchie
Marshal
Posts: 55681
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the code button; I have edited your post and you can see how much better it looks. Your code is difficult to understand without code tags, and not much easier with code tags.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!