title: How to access method parameters while inside of a Runnable defined on the fly
body: <p>Here is my code:</p>
  
  <pre><code>public void showScore(Player winner)
  {
      view.runOnUiThread(new Runnable()
      {
          public void run()
          {
              String scored = view.getString(R.string.scored_a_goal);
              String score = view.getString(R.string.score);
  
              Toast.makeText(view,winner.name+" "+view.getString(R.string.scored_a_goal),Toast.LENGTH_SHORT).show();
          }
      });
  }
  </code></pre>
  
  <p>Now everything is fine except for I cannot access winner(of type Player) from inside the Runnable, what is the work around for this?</p>