How Can I Implement This Function?
Posted
by hoora
on Stack Overflow
See other posts from Stack Overflow
or by hoora
Published on 2010-05-25T19:38:17Z
Indexed on
2010/05/25
19:51 UTC
Read the original article
Hit count: 116
java
I'm a beginner and I want to write Java code in eclipse. This program takes two LinkedList
s of integers (for example, a
and b
) and makes a LinkedList
(for example d
) in which every element is the sum of elements from a
and b
. However, I can't add these two elements from a
and b
because they are Objects
Example:
a=[3,4,6,7,8]
b=[4,3,7,5,3,2,1]
------
d=[7,7,13,12,11,2,1]
© Stack Overflow or respective owner