Untitled
public text v1 · immutablepublic void run()
{
try
{
while ((line = reader.readLine( )) != null)
{
if (line.indexOf("004") >= 0)
{
break;
}
else if (line.indexOf("433") >= 0)
{
pane.setText(pane.getText() + new String("Nickname already in use.\n"));
return;
}
}
} catch (IOException e) {
System.out.println(e.getMessage());
}
}