SMack API in java
<pre><code>public void processMessage(Chat chat, Message message) {
        if (message.getType() == Message.Type.chat)
            System.out.println(chat.getParticipant() + " says: "+ message.getBody());
      **processmsg** = message.getBody();
        System.out.println("Message from Friend -----:"+**processmsg**);

    }
</code></pre>

<p>Hi.how to use this <strong>processmsg</strong> String in another method.if i use outside this method i get null value. plz reply soon</p>
