Update chat.java

Thread it !