title: How to jumble a word from EditText and apply the jumbled word into a TextView
body: <p>I need to know how to jumble a word entered into EditText. </p>
  
  <p>The jumbled word will show in another TextView in the same interface. </p>
  
  <p>I have tried to do this but I get a force close error. This is what I have tried within the button:</p>
  
  <pre><code>wordE = (EditText)findViewById(R.id.entry); 
  jumble = (TextView) findViewById(R.id.jumble);
  Button link5Btn = (Button)findViewById( R.id.selected );
  link5Btn.setOnClickListener( new View.OnClickListener()
  {
  public void onClick(View v)
      {
  jumbleMe(al);
  }
  </code></pre>
  
  <p>Which calls the method:</p>
  
  <pre><code>private void jumbleMe( String word ){
  
  al = wordE.getText().toString(); 
  ArrayList&lt;Character&gt; al = new ArrayList&lt;Character&gt;();
  for (int i = 0; i &lt; wordE.length(); i++) {
      al.add(word.charAt(i));
  }
  Collections.shuffle(al);
  
  jumble.setText( al.toString() );
  }
  </code></pre>
  
  <p>I would appreciate any help on this. Thanks</p>