java - Add to integers stored in LinkedList -
i stored 2 integers in 2 linkedlist,
linkedlist a stores -49999
linkedlist b stores 100001
how can add together 2 integers together?
try following:
long result = a.get(0) + b.get(0); then deal result
java linked-list
No comments:
Post a Comment