悪い、まちがっちまった。けど、やっぱり
おんなじだったけど・・・?
String s;
do
 s = datainputstream.readLine();
while(!s.equals("ss"));