Anonymous user
HTTP: Difference between revisions
m
Updated URL.
m (Updated URL.) |
m (Updated URL.) |
||
Line 977:
<lang java5>import java.util.Scanner;
import java.net.URL;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(new URL("http://www.
while (sc.hasNext())
System.out.println(sc.nextLine());
}
}</lang>▼
▲</lang>
{{libheader|Apache Commons IO}}
<lang java5>import org.apache.commons.io.IOUtils;▼
▲import org.apache.commons.io.IOUtils;
import java.net.URL;
public class Main {
public static void main(String[] args) throws Exception {
IOUtils.copy(new URL("http://
}
}</lang>
|