Reputation: 267
I am writing a web service similar to below. But Java is not recognizing the URL, URLConnection. I am unable to solve this issue.
URL yahoo = new URL("http://www.yahoo.com/");
URLConnection yc = yahoo.openConnection();
int dataLen = yc.getContentLength() ;
Upvotes: 0
Views: 283