title: multi user chat in smack
body: <p>I am a new user of SMACK chat API. I am trying to write a multi user chat application but not able to do it. Can anyone give me simple full version of code for this.</p>
  
  <p>Here is my code</p>
  
  <pre><code>    ConnectionConfiguration config = new ConnectionConfiguration("127.0.0.1",5222);
      connection = new XMPPConnection(config);
      connection.connect();
      connection.login("aa", "bb");
  
      MultiUserChat muc = new MultiUserChat(connection, "test@testdomain");
      muc.join("nick");
  </code></pre>