}
System.out.println("Size is : "+ count);
reader.close();
}
catch (MalformedURLException e)
{System.err.println("Bad URL: "+ urlString);}
catch (IOException e)
{System.err.println("I/O Problems");}
}
thread1.start();
Runnable runnable = new Runnable()
{
public void run()
{
while(true)
{
System.out.println(message);
try
{
Thread.sleep(500);
} catch (InterruptedException e) {}
文章来源于领测软件测试网 https://www.ltesting.net/