본문으로 건너뛰기
노리터자유게시판
여기 사실 휴대폰 커뮤니티임.성지 시세, 알뜰폰 요금 비교표직접 모아 가격순으로 보여줌11-08 확인 · 판매처 55곳 · 요금제 3,319개

자유게시판

떡밥투척.

public static void main(String[] args)
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String tmp;
try
{
System.out.println("대화명을 입력해 주세요.");
String name=br.readLine();

ChatClientCore trd
= new ChatClientCore(args[0],Integer.parseInt(args[1]),name);
trd.start();
while (true)
{
tmp=br.readLine();
if(tmp==null) break;

trd.sendMessage(tmp);

if(tmp.equals("quit")) trd.disconnect();
}
}
catch(Exception ex)
{
System.out.println("\"java ChatClientText
서버이름 포트 \"형식으로 실행시키세요.");
}

ㄳ.

끝.

신고

댓글 6

  1. 횽들나라고

    알바중이신덧.

    신고
  2. 핡ㅇ

    자바?

    신고
  3. 연불

    ㅇㅇ

    신고
  4. 김씨

    <div align=right> <!--추천--> <a href="#" onclick="doCallModuleAction('document','procDocumentVoteUp','588343');return false;" class="button"><span>추천</span></a> <!--비추천--> <a href="#" onclick="doCallModuleAction('document','procDocumentVoteDown','588343');return false;" class="button"><span>비추천</span></a>

    신고
  5. 알바

    ㅇㅇ

    신고
  6. 찜쭘

    ?

    신고

댓글 작성

로그인 후 댓글을 작성할 수 있음.로그인

사진을 여기로 끌어다 놓거나이미지 · 파일당 최대 1 MB