title: Type of List to Store Multipe Data Types
body: <p>So my problem is that I've written a function that takes two Doubles, two Int, and a Calendar object on Android (Java). I believe the class provided to allow it to run in a separate thread, AsyncTask, accepts only one type of Object (but allows multiple) as an argument so I figured I might be able to put it in a List or a LinkedList or something.</p>
  
  <p>Is there such a type that allows multiple data types like that (<code>Double, Double, Int, Int, Calendar</code>), or would I have to create my own object class?  I'm a novice programmer so less complicated is probably better, but I'm interested in the best solution as well.</p>
  
  <p>What the function does is take a location (<code>double latitude, double longitude</code>), a couple options as integers, and a Calendar Object. It takes the location, options, and date then returns a Time object of the sunrise (or sunset, depending on the options) for that location. Thanks for the tips, and I understand it would probably be best to create a special object class and just pass that, or override the background thread class, but I'm pretty new to object-oriented programming so the less overhead the better (for now).</p>
  
  <p>(Update) After a lot of work, it ended up being easier making a data-type class and just using that. The right way turned out to be easier in the end. Who'd a thought.</p>