- 775 名前:774 mailto:sage [2010/01/22(金) 23:19:22 ]
- >>771
> エンターキーのみが入力された場合は、文字列を送らずもう一度文字列を入力させて、 > その文字列を送るようにする。 を忘れてた クライアントに if (str.isEmpty()) continue; //+++ if (str.equals("quit")) { break; } を加えてサーバを //+++ do { System.out.println("送信する文字列を入力してください"); str = data.readLine(); } while(str.isEmpty()); //+++ if (str.equals("quit")) { break; } のように変更する
|

|