Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/354.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HashBasedTable表<;字符串,字符串,双精度>;员工服务年鉴和HashMap<;字符串,双>;hm1 java_Java_Hashmap_Guava - Fatal编程技术网

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