Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Need help in java some implemting logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need help in java some implemting logic" Watch "Need help in java some implemting logic" New topic
Author

Need help in java some implemting logic

satish kinikiri
Greenhorn

Joined: Nov 16, 2010
Posts: 5
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

Joined: May 03, 2008
Posts: 4523
    
    5

Satish, welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/new-java/34869-need-help-java-some-implemting-logic.html


luck, db
There are no new questions, but there may be new answers.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3064
    
  33

You can have an List of Lists. And nested loops to find the sum


Mohamed Sanaulla | My Blog
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37958
    
  22
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.
 
Consider Paul's rocket mass heater.
 
subject: Need help in java some implemting logic
 
Similar Threads
access database with java
Output even more unexpected than I was expecting!
Thread
Thread.sleep() and lock
arrays