Is it possible to have an array with two distinct sorts of data in it? A double and a string should both be included in my array. I tried to
ArrayList<double><String> array;
However, it failed.
Sorry for the dumb inquiry, but I haven't used something similar in a while. Could you remind me how I would declare and fill such an array?
Then, to go one step further, is it possible to sort the array by the double?