title: How do I associate numbers with my array list?
body: <p>I have created two spinners, a meal type spinner (e.g. Breakfast, lunch...) and a food spinner (e.g. porridge). Once the user has selected their meal type the associated foods appear in the second spinner. </p>
  
  <p>Now I want to be able to create a food calculator which will multiply a set of calories for each food with a number entered by the user but I'm not sure how I associate my numbers with my array list for my spinner. Is it something like this? </p>
  
  <pre><code>private void chooseBreakfast() {
      planspinner1 = (Spinner) findViewById(R.id.planspinner);
      List&lt;String&gt; planlist = new ArrayList&lt;String&gt;();
      planlist.add("Porridge-40g/140cal");
      planlist.add("Coffee-10g/10cal");
      planlist.add("Toast-30g/87cal");
      ArrayAdapter&lt;String&gt; planAdapter1 = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_spinner_item, planlist);
  
      planAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      planspinner1.setAdapter(planAdapter1);
  
      ArrayList&lt;int&gt; food = newArrayList&lt;int&gt;();
      food.add(4);
      food.add(1);
      food.add(3);
  
  }
  </code></pre>