HashBasedTable表<;字符串,字符串,双精度>;员工服务年鉴和HashMap<;字符串,双>;hm1 java
我有HashBasedTable表<;字符串,字符串,双精度>;员工服务年鉴和HashMap<;字符串,双>;hm1 java,java,hashmap,guava,Java,Hashmap,Guava,我有HashBasedTable表employeeYearsOfService AT&T={Bill Smith=2.0, Stacy Lerner=1.4}, fatima={Bill Smith=1.0, Stacy Lerner=2.0} AT&T=0.9628, fatima=0.975 我有HashMap hm1谁拥有相同的employeeYearsOfService AT&T={Bill Smith=2.0, Stacy Lerner=1.4},
HashBasedTable表employeeYearsOfService
AT&T={Bill Smith=2.0, Stacy Lerner=1.4},
fatima={Bill Smith=1.0, Stacy Lerner=2.0}
AT&T=0.9628,
fatima=0.975
我有HashMap hm1
谁拥有相同的employeeYearsOfService
AT&T={Bill Smith=2.0, Stacy Lerner=1.4},
fatima={Bill Smith=1.0, Stacy Lerner=2.0}
AT&T=0.9628,
fatima=0.975
我想做这个计算
result= 2.0*0968+1.0*0.975| for column bill Smith
result= 1.4*0968+2.0*0.975| for column Stacy Lerner
并将结果存储在新的hashmap hm4中
我的代码
谢谢您希望输出什么?@RobinTopper我想在我的
HashMap hm1中获得calul和同一个键的结果
我仍然不清楚您的问题和预期结果。试着为你的问题提供一个答案。好的,我会尽力的。谢谢你,罗宾
result= (2.0*0968+2.0*0.975)+(1.0*0968+1.0*0.975)| for column bill Smith