Top.Mail.Ru
October 12th, 2005 - Java developers — LiveJournal
? ?

Java developers

October 12th, 2005
Image

01:21 pm - Imagegyrle - linkedlist

there are not (or none that i know of) methods in the linkedlist class that return the value of a node in a linkedlist as integer. the get method returns an object... i need to add and multiply values from the linkedlist, but i cannot apply these opperators to them.
ex: n1 and n2 are linkedlist
int sum = n1.get(3) + n2.get(3)+carry;

doesn't work...

is there a way to cast/convert the values in the nodes indivually as integers? or anything that i can do so that i am able to just add them?

thanks in advance.
Powered by LiveJournal.com
Image