Ok, well I figured my other issue out myself...basically when using:
for (T t : myList)
I had to do this when performing math operations:
Type: Posts; User: 999cm999
Ok, well I figured my other issue out myself...basically when using:
for (T t : myList)
I had to do this when performing math operations:
Oh ok, that makes sense.
I changed my for loop to use type "T"...
once in the loop, I need to apply math operations to the data, but I can't use addition, subtraction, etc on type "T". How...
I'm having trouble with a generic method that can accept ArrayLists of type integer and type double.
The program fails to compile because it says myList is of type "T" and i is of type "double".
...