title: android.util.Pair example
body: <pre><code>   @Override
      public void onClick(View view) {
          Context context = view.getContext();
          switch(view.getId()) {
              case R.id.getGreetingButton:
                  Pair &lt;Context,Integer&gt;p=new Pair(context,1);
                  new RestTask().execute(p);
                  break;
  
          }
      }
  
      private class RestTask extends AsyncTask&lt;Pair&lt;Context,Integer&gt;, Void, Pair&lt;Context,String&gt;&gt; {
          @Override
          protected Pair doInBackground(Pair&lt;Context,Integer&gt;... p) {
              String text = "hello";
              Pair &lt;Context,String&gt;result=new Pair(p.first,text);
              return result;
          }
          @Override
          protected void onPostExecute(Pair&lt;Context,String&gt;... p) {toaster(p.first, p.second);}
      }
  </code></pre>
  
  <p>1) How do you call this <code>...</code> thing and what does it do?</p>
  
  <p>2) Why are p.first and p.second not found by the compiler?</p>
  
  <p>3) When do you use Pair.create(a,b)?</p>