Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Adding two tables using arrays in java (http://www.go4expert.com/forums/adding-tables-using-arrays-java-t10899/)

doddlepeck 29May2008 16:14

Adding two tables using arrays in java
 
hi all, my project is in pending because of the one major task ..i connected two different databases and exported the values using separate excel sheet for each databse.Now i need to add both the tables from excel and output the value in third excelsheet.

For ex ,

Table 1

service name failedcount totalcount

partyadd 10 200
partysub 20 100
partydiv 10 300
partypro 10 500
partyval 0 200
partysor 30 800


Table 2

service name failedcount totalcount
partymul 10 200
partysub 10 200
partydiv 15 400

now the output shoud be

Table 3

service name failedcount totalcount

partyadd 10 200
partysub 30 300
partydiv 25 700
partypro 10 500
partyval 0 200
partysor 30 800
partymul 10 200



Can anyone help me out in getting the array code to add two tables values ?Please revert me back if this question is not understandable.


All times are GMT +5.5. The time now is 01:57.