I'm trying to write a class to connect to a website. I've imported java.net.* and java.io.*, and on the following code
I keep getting a cannot resolve on hp:
URL hp = new URL("URLConnection conn = hp.openConnection();
I'm not familiar enough with the packages to know, if I'm using them properly; but as far as I can tell the code seems right. Can some one help? I can't see anything wrong.
I keep getting a cannot resolve on hp:
URL hp = new URL("URLConnection conn = hp.openConnection();
I'm not familiar enough with the packages to know, if I'm using them properly; but as far as I can tell the code seems right. Can some one help? I can't see anything wrong.