Code for j2me chat app