tag:blogger.com,1999:blog-6543397255913469784.post7695849039852089950..comments2024-03-27T00:12:31.142-07:00Comments on Are you ready: what is new in java8 ConcurrentHashMapAshkrithttp://www.blogger.com/profile/09218886398665853347noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6543397255913469784.post-63977703383258617932016-02-14T08:40:26.597-08:002016-02-14T08:40:26.597-08:00wordMap.reduceValues(1,(count1,count2) -> count...wordMap.reduceValues(1,(count1,count2) -> count1+count2);<br />In the above line what is the first argument? if 1 is supposed to be the initial value, shouldnt it be 0 instead? Vijayhttps://www.blogger.com/profile/09960861172077618631noreply@blogger.comtag:blogger.com,1999:blog-6543397255913469784.post-10361311860116752162016-02-13T23:30:23.588-08:002016-02-13T23:30:23.588-08:00wordMap.reduceValues(1,(count1,count2) -> count...wordMap.reduceValues(1,(count1,count2) -> count1+count2);<br />In the above line what is the first argument? if 1 is supposed to be the initial value, shouldnt it be 0 instead? Vijayhttps://www.blogger.com/profile/09960861172077618631noreply@blogger.comtag:blogger.com,1999:blog-6543397255913469784.post-27478539207618553592015-10-16T03:20:27.914-07:002015-10-16T03:20:27.914-07:00Thanks for feedback.
Which part has errors ? It wi...Thanks for feedback.<br />Which part has errors ? It will help me in fixing it.Ashkrithttps://www.blogger.com/profile/09218886398665853347noreply@blogger.comtag:blogger.com,1999:blog-6543397255913469784.post-55084199317924234392015-10-16T01:04:05.260-07:002015-10-16T01:04:05.260-07:00nice code, but unfortunately full of errors...nice code, but unfortunately full of errors...Anonymoushttps://www.blogger.com/profile/16338460612022978180noreply@blogger.comtag:blogger.com,1999:blog-6543397255913469784.post-56731557483186259832015-10-16T00:55:48.588-07:002015-10-16T00:55:48.588-07:00nice code, but unfortunately full of errors...nice code, but unfortunately full of errors...Anonymoushttps://www.blogger.com/profile/16338460612022978180noreply@blogger.com