package verify.exam06;

public class Chatting {
	void startChat(String chatId) {
		/*String nickName = null;
		nickName = chatId;*/
		String nickName = chatId;
		Chat chat = new Chat() {
			@Override
			public void start() {
				while(true) {
					String inputData = "¾È³çÇÏ¼¼¿ä";
					String message = "[" + nickName + "] " + inputData;
					sendMessage(message);
				}
			}
		};
		chat.start();
	}
	
	class Chat {
		void start() {}
		void sendMessage(String message) {}
	}
}
