java turn chat