public static void
main(String args[])
}
final String urlString = args[0];
final String message = args[1];
Thread thread1 = new Thread()
{
public void run()
{
try
{
URL url = new URL(urlString);
URLConnection connection = url.openConnection();
InputStreamReader isr = new InputStreamReaderconnection.getInputStream());
BufferedReader reader = new BufferedReader(isr);
int count = 0;
while (reader.read() != -1)
{
count++;
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/